mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 08:51:24 +00:00
- SW: Add nullptr check inside WarpSectorInfo()
to prevent crashes while noclipping through level.
This commit is contained in:
parent
10e28b8a53
commit
12a0f587a3
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue