mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
polymost.c: fix possible access of wallchanged[-1]. DONT_BUILD.
git-svn-id: https://svn.eduke32.com/eduke32@4932 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
03be585ff7
commit
80da69f6a0
1 changed files with 1 additions and 1 deletions
|
@ -4072,7 +4072,7 @@ void polymost_drawsprite(int32_t snum)
|
||||||
{
|
{
|
||||||
w = polymost_findwall(tspr, &walldist);
|
w = polymost_findwall(tspr, &walldist);
|
||||||
|
|
||||||
if (s != -1)
|
if (s != -1 && w != -1)
|
||||||
{
|
{
|
||||||
wallspriteinfo_t *ws = &wsprinfo[s];
|
wallspriteinfo_t *ws = &wsprinfo[s];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue