- Duke: Add nullptr check to footprints() code.

This commit is contained in:
Mitchell Richters 2022-01-04 22:43:58 +11:00
parent 468aea78ef
commit 6414a4ce78

View file

@ -497,7 +497,7 @@ void footprints(int snum)
auto actor = p->GetActor();
if (p->footprintcount > 0 && p->on_ground)
if ((p->cursector->floorstat & CSTAT_SECTOR_SLOPE) != 2)
if (p->insector() && (p->cursector->floorstat & CSTAT_SECTOR_SLOPE) != 2)
{
int j = -1;
DukeSectIterator it(actor->sector());