From 930689d468e4c6a66366491a76a1969a86ab5c29 Mon Sep 17 00:00:00 2001 From: plagman Date: Sun, 31 May 2009 18:16:14 +0000 Subject: [PATCH] More corrupt map checks. git-svn-id: https://svn.eduke32.com/eduke32@1395 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/polymer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/polymer/eduke32/build/src/polymer.c b/polymer/eduke32/build/src/polymer.c index ac6d6743f..0293c3567 100644 --- a/polymer/eduke32/build/src/polymer.c +++ b/polymer/eduke32/build/src/polymer.c @@ -2202,6 +2202,8 @@ static void polymer_updatewall(int16_t wallnum) // it also works, bitches wal = &wall[wallnum]; nwallnum = wal->nextwall; + if (sectorofwall(wallnum) == -1) + return; // yay, corrupt map sec = §or[sectorofwall(wallnum)]; if (sec->wallptr > wallnum) return; // the map is horribly corrupt