- added NULL check where it can crash when noclipping.

This commit is contained in:
Christoph Oelckers 2022-10-19 18:25:43 +02:00
parent a6bf98399c
commit ccbe472444

View file

@ -6737,7 +6737,7 @@ void DoPlayerRun(PLAYER* pp)
return;
}
if ((pp->cursector->extra & SECTFX_DYNAMIC_AREA))
if ((pp->cursector && pp->cursector->extra & SECTFX_DYNAMIC_AREA))
{
pp->pos.Z = pp->loz - PLAYER_HEIGHTF;
}