mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
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:
parent
cd6e846fac
commit
65e0e75a8c
1 changed files with 25 additions and 21 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue