From 86113141bf2b064e56c8ab3d78aa4abe41003127 Mon Sep 17 00:00:00 2001 From: Conor Edmonds Date: Tue, 9 Jun 2026 20:02:48 -0400 Subject: [PATCH] trying to prevent error --- Map.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Map.cs b/Map.cs index 24c7c9e..370674d 100644 --- a/Map.cs +++ b/Map.cs @@ -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;