mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
Fix out-of-bounds access in tile selector code in astub.c
git-svn-id: https://svn.eduke32.com/eduke32@2177 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
2f14c6dbed
commit
4989c173bd
1 changed files with 1 additions and 1 deletions
|
@ -3333,7 +3333,7 @@ static int32_t m32gettile(int32_t idInitialTile)
|
|||
{
|
||||
temp = i;
|
||||
|
||||
while (localartfreq[temp]<localartfreq[temp+gap] && temp >= 0)
|
||||
while (temp >= 0 && localartfreq[temp]<localartfreq[temp+gap])
|
||||
{
|
||||
int32_t tempint;
|
||||
|
||||
|
|
Loading…
Reference in a new issue