mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
Fix a potential wall[-1] access in Mapster32.
git-svn-id: https://svn.eduke32.com/eduke32@2273 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
7a893b8ec4
commit
bb1070b795
1 changed files with 1 additions and 2 deletions
|
@ -7752,8 +7752,7 @@ static int32_t getlinehighlight(int32_t xplc, int32_t yplc, int32_t line)
|
|||
}
|
||||
}
|
||||
|
||||
j = wall[closest].nextwall;
|
||||
if (closest>=0 && j >= 0)
|
||||
if (closest>=0 && (j = wall[closest].nextwall) >= 0)
|
||||
#ifdef YAX_ENABLE
|
||||
if (m32_sideview || ((graywallbitmap[j>>3]&(1<<(j&7)))==0))
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue