Fix encore crash
This commit is contained in:
parent
66ce1c9b18
commit
8c9485fdd7
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ boolean R_NoEncore(sector_t *sector, levelflat_t *flat, boolean ceiling)
|
|||
const boolean invertEncore = (sector->flags & MSF_INVERTENCORE);
|
||||
const terrain_t *terrain = (flat != NULL ? flat->terrain : NULL);
|
||||
|
||||
if ((terrain == NULL)
|
||||
if ((terrain != NULL)
|
||||
&& !(terrain->flags & TRF_SNEAKERPANEL))
|
||||
{
|
||||
return invertEncore;
|
||||
|
|
|
|||
Loading…
Reference in a new issue