fix fields not being cleared from the map if they weren’t used for field counting
This commit is contained in:
@ -72,8 +72,7 @@ window.handleDataResponse = function(data, textStatus, jqXHR) {
|
|||||||
var p2f = {};
|
var p2f = {};
|
||||||
$.each(m, function(qk, val) {
|
$.each(m, function(qk, val) {
|
||||||
$.each(val.deletedGameEntityGuids, function(ind, guid) {
|
$.each(val.deletedGameEntityGuids, function(ind, guid) {
|
||||||
if(getTypeByGuid(guid) === TYPE_FIELD) {
|
if(getTypeByGuid(guid) === TYPE_FIELD && window.fields[guid] !== undefined) {
|
||||||
if(window.fields[guid] === undefined) return true;
|
|
||||||
$.each(window.fields[guid].options.vertices, function(ind, vertex) {
|
$.each(window.fields[guid].options.vertices, function(ind, vertex) {
|
||||||
if(window.portals[vertex.guid] === undefined) return true;
|
if(window.portals[vertex.guid] === undefined) return true;
|
||||||
fieldArray = window.portals[vertex.guid].options.portalV2.linkedFields;
|
fieldArray = window.portals[vertex.guid].options.portalV2.linkedFields;
|
||||||
|
Reference in New Issue
Block a user