fix SwissCM's piece of shit corrupt map that will never be released because he has no friends who would want to play it

git-svn-id: https://svn.eduke32.com/eduke32@1638 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2010-05-12 00:53:35 +00:00
parent b1ffbfda36
commit a77c4744c4

View file

@ -4386,7 +4386,7 @@ static void Keys3d(void)
dax = wall[searchwall].x-wall[wall[searchwall].point2].x;
day = wall[searchwall].y-wall[wall[searchwall].point2].y;
dist = ksqrt(dax*dax+day*day);
if (wall[searchwall].nextsector!=-1)
if (wall[searchwall].nextsector >= 0 && wall[searchwall].nextsector < numsectors)
{
int32_t nextsect=wall[searchwall].nextsector;
height1=sector[searchsector].floorz-sector[nextsect].floorz;