From d5285ca26cc60ab61c80fa8e6a1fe5467bf3241b Mon Sep 17 00:00:00 2001 From: Stefan Breunig Date: Sun, 10 Feb 2013 09:51:02 +0100 Subject: [PATCH] =?UTF-8?q?fix=20fields=20not=20being=20cleared=20from=20t?= =?UTF-8?q?he=20map=20if=20they=20weren=E2=80=99t=20used=20for=20field=20c?= =?UTF-8?q?ounting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/map_data.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/map_data.js b/code/map_data.js index 6d12e7a7..cc747a76 100644 --- a/code/map_data.js +++ b/code/map_data.js @@ -72,8 +72,7 @@ window.handleDataResponse = function(data, textStatus, jqXHR) { var p2f = {}; $.each(m, function(qk, val) { $.each(val.deletedGameEntityGuids, function(ind, guid) { - if(getTypeByGuid(guid) === TYPE_FIELD) { - if(window.fields[guid] === undefined) return true; + if(getTypeByGuid(guid) === TYPE_FIELD && window.fields[guid] !== undefined) { $.each(window.fields[guid].options.vertices, function(ind, vertex) { if(window.portals[vertex.guid] === undefined) return true; fieldArray = window.portals[vertex.guid].options.portalV2.linkedFields;