- SW: Add nullptr check inside WarpSectorInfo() to prevent crashes while noclipping through level.

This commit is contained in:
Mitch Richters 2021-12-05 17:30:11 +11:00 committed by Christoph Oelckers
parent 10e28b8a53
commit 12a0f587a3

View file

@ -210,7 +210,7 @@ bool WarpSectorInfo(sectortype* sect, DSWActor** sp_warp)
{
*sp_warp = nullptr;
if (!TEST(sect->extra, SECTFX_WARP_SECTOR))
if (sect && !TEST(sect->extra, SECTFX_WARP_SECTOR))
return false;
SWStatIterator it(STAT_WARP);