From cbb3fd0b242ab72864636db2b0d6e6ff3e7e35ac Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 4 Feb 2024 12:27:17 -0500 Subject: [PATCH] Proper null test needed --- src/engine/gameManager/BuildingManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/gameManager/BuildingManager.java b/src/engine/gameManager/BuildingManager.java index 59e6a28b..98e185e0 100644 --- a/src/engine/gameManager/BuildingManager.java +++ b/src/engine/gameManager/BuildingManager.java @@ -55,7 +55,7 @@ public enum BuildingManager { for (int i = 0; i < numOfSlots; i++) { - if (!building.hirelings.contains(i)) + if (building.hirelings.get(i) != null) return i; } return -1;