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:
helixhorned 2012-01-20 15:48:03 +00:00
parent 7a893b8ec4
commit bb1070b795

View file

@ -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