Fix encore crash

This commit is contained in:
NepDisk 2024-08-20 02:59:21 -04:00
parent 66ce1c9b18
commit 8c9485fdd7

View file

@ -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;