mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 17:01:28 +00:00
- SW: Add nullptr check inside ActorTrackDecide()
for walltype's nextSector()
to prevent crashes while noclipping through level.
This commit is contained in:
parent
5085dcd866
commit
10e28b8a53
1 changed files with 3 additions and 0 deletions
|
@ -3140,6 +3140,9 @@ bool ActorTrackDecide(TRACK_POINTp tpoint, DSWActor* actor)
|
|||
if (hit.hitWall == nullptr)
|
||||
return false;
|
||||
|
||||
if (hit.hitWall->nextSector() == nullptr)
|
||||
return false;
|
||||
|
||||
zdiff = labs(sp->z - hit.hitWall->nextSector()->floorz) >> 8;
|
||||
|
||||
u->jump_speed = PickJumpSpeed(actor, zdiff);
|
||||
|
|
Loading…
Reference in a new issue