mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-18 22:51:50 +00:00
- Duke: Add nullptr check to footprints()
code.
This commit is contained in:
parent
468aea78ef
commit
6414a4ce78
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue