sector.c: in ST9 handling code, prevent oob for improperly constructed doors.

git-svn-id: https://svn.eduke32.com/eduke32@4203 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2013-12-20 18:31:24 +00:00
parent dd52afbf1b
commit 0f6e22e20e

View file

@ -569,6 +569,9 @@ void G_OperateSectors(int32_t sn, int32_t ii)
else wallfind[1] = i; else wallfind[1] = i;
} }
if (wallfind[1] == -1)
return;
for (j=0; j<2; j++) for (j=0; j<2; j++)
{ {
if ((wall[wallfind[j]].x == dax) && (wall[wallfind[j]].y == day)) if ((wall[wallfind[j]].x == dax) && (wall[wallfind[j]].y == day))