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:
helixhorned 2015-01-18 20:28:59 +00:00
parent 03be585ff7
commit 80da69f6a0

View file

@ -4072,7 +4072,7 @@ void polymost_drawsprite(int32_t snum)
{
w = polymost_findwall(tspr, &walldist);
if (s != -1)
if (s != -1 && w != -1)
{
wallspriteinfo_t *ws = &wsprinfo[s];