Core\Gameobject: Fix a crash when loading in to panada land.
This commit is contained in:
@@ -366,10 +366,9 @@ namespace Game.Entities
|
|||||||
if (linkedGo != null)
|
if (linkedGo != null)
|
||||||
{
|
{
|
||||||
SetLinkedTrap(linkedGo);
|
SetLinkedTrap(linkedGo);
|
||||||
map.AddToMap(linkedGo);
|
if (!map.AddToMap(linkedGo))
|
||||||
|
linkedGo.Dispose();
|
||||||
}
|
}
|
||||||
else
|
|
||||||
linkedGo.Dispose();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user