Fix negative array access in premap.c

git-svn-id: https://svn.eduke32.com/eduke32@2172 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2011-12-09 19:12:15 +00:00
parent cd6e846fac
commit 65e0e75a8c

View file

@ -1331,6 +1331,9 @@ static inline void prelevel(char g)
{
switchpicnum = W_FORCEFIELD;
}
if (switchpicnum >= 0)
{
switch (DynamicTileMap[switchpicnum])
{
case FANSHADOW__STATIC:
@ -1360,6 +1363,7 @@ static inline void prelevel(char g)
continue;
}
}
wal->extra = -1;