trying to prevent error
This commit is contained in:
@@ -91,8 +91,11 @@ public partial class Map : TileMapLayer
|
||||
|
||||
public void SetCellEnemy(Vector2I ADDRESS, Enemy ENEMY)
|
||||
{
|
||||
_addressOccupants[ENEMY._address] = null;
|
||||
SetCellSolid(ENEMY._address);
|
||||
if (ENEMY._address != -Vector2I.One)
|
||||
{
|
||||
_addressOccupants[ENEMY._address] = null;
|
||||
SetCellSolid(ENEMY._address);
|
||||
}
|
||||
|
||||
ENEMY._address = ADDRESS;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user