Core\Gameobject: Fix a crash when loading in to panada land.

This commit is contained in:
hondacrx
2018-03-12 10:02:59 -04:00
parent ef7423fa12
commit c3e8dd5ff4
@@ -366,10 +366,9 @@ namespace Game.Entities
if (linkedGo != null)
{
SetLinkedTrap(linkedGo);
map.AddToMap(linkedGo);
if (!map.AddToMap(linkedGo))
linkedGo.Dispose();
}
else
linkedGo.Dispose();
}
return true;