negative array acces. ny00123

git-svn-id: https://svn.eduke32.com/eduke32@803 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
qbix79 2008-06-13 15:16:14 +00:00
parent d8ea4c5350
commit 2a78af4558

View file

@ -2462,8 +2462,10 @@ static void parascan(int dax1, int dax2, int sectnum, char dastat, int bunch)
{
wallnum = thewall[z]; nextsectnum = wall[wallnum].nextsector;
if(nextsectnum >= 0) { //else negative array access
if (dastat == 0) j = sector[nextsectnum].ceilingstat;
else j = sector[nextsectnum].floorstat;
}
if ((nextsectnum < 0) || (wall[wallnum].cstat&32) || ((j&1) == 0))
{