only remove links if they are in the layer
This commit is contained in:
parent
33bdc2c590
commit
e7309000e0
@ -192,7 +192,9 @@ window.Render.prototype.deletePortalEntity = function(guid) {
|
||||
window.Render.prototype.deleteLinkEntity = function(guid) {
|
||||
if (guid in window.links) {
|
||||
var l = window.links[guid];
|
||||
linksFactionLayers[l.options.team].removeLayer(l);
|
||||
if (linksFactionLayers[l.options.team].hasLayer(l)) {
|
||||
linksFactionLayers[l.options.team].removeLayer(l);
|
||||
}
|
||||
delete window.links[guid];
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user