mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 09:21:36 +00:00
More corrupt map checks.
git-svn-id: https://svn.eduke32.com/eduke32@1395 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
2997d1e0f5
commit
930689d468
1 changed files with 2 additions and 0 deletions
|
@ -2202,6 +2202,8 @@ static void polymer_updatewall(int16_t wallnum)
|
|||
// it also works, bitches
|
||||
wal = &wall[wallnum];
|
||||
nwallnum = wal->nextwall;
|
||||
if (sectorofwall(wallnum) == -1)
|
||||
return; // yay, corrupt map
|
||||
sec = §or[sectorofwall(wallnum)];
|
||||
if (sec->wallptr > wallnum)
|
||||
return; // the map is horribly corrupt
|
||||
|
|
Loading…
Reference in a new issue