- fixed handling of badly placed sprites in map validation code.

This commit is contained in:
Christoph Oelckers 2022-01-29 12:33:11 +01:00
parent ca9936a601
commit f98765ce95

View file

@ -284,7 +284,8 @@ void validateSprite(spritetype& spr, int sectnum, int index)
spr.statnum = MAXSTATUS;
sectnum = -1;
}
spr.sectp = &sector[sectnum];
if (sectnum >= 0) spr.sectp = &sector[sectnum];
else spr.sectp = nullptr;
}
static void ReadSpriteV7(FileReader& fr, spritetype& spr, int& secno)