From a77c4744c47e63af7805d76a92f795f3892c0618 Mon Sep 17 00:00:00 2001 From: terminx Date: Wed, 12 May 2010 00:53:35 +0000 Subject: [PATCH] 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 --- polymer/eduke32/source/astub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polymer/eduke32/source/astub.c b/polymer/eduke32/source/astub.c index c134184a3..988ce0dad 100644 --- a/polymer/eduke32/source/astub.c +++ b/polymer/eduke32/source/astub.c @@ -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;