mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-31 04:20:42 +00:00
- fixed handling of badly placed sprites in map validation code.
This commit is contained in:
parent
ca9936a601
commit
f98765ce95
1 changed files with 2 additions and 1 deletions
|
@ -284,7 +284,8 @@ void validateSprite(spritetype& spr, int sectnum, int index)
|
|||
spr.statnum = MAXSTATUS;
|
||||
sectnum = -1;
|
||||
}
|
||||
spr.sectp = §or[sectnum];
|
||||
if (sectnum >= 0) spr.sectp = §or[sectnum];
|
||||
else spr.sectp = nullptr;
|
||||
}
|
||||
|
||||
static void ReadSpriteV7(FileReader& fr, spritetype& spr, int& secno)
|
||||
|
|
Loading…
Reference in a new issue