diff --git a/source/games/sw/src/track.cpp b/source/games/sw/src/track.cpp index 891dc733c..3fbfcf049 100644 --- a/source/games/sw/src/track.cpp +++ b/source/games/sw/src/track.cpp @@ -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);