mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00: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;
|
switchpicnum = W_FORCEFIELD;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (switchpicnum >= 0)
|
||||||
|
{
|
||||||
switch (DynamicTileMap[switchpicnum])
|
switch (DynamicTileMap[switchpicnum])
|
||||||
{
|
{
|
||||||
case FANSHADOW__STATIC:
|
case FANSHADOW__STATIC:
|
||||||
|
@ -1360,6 +1363,7 @@ static inline void prelevel(char g)
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
wal->extra = -1;
|
wal->extra = -1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue