From ce8dc09a95ba4d87885362aac5f087e25dec170e Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 4 Feb 2024 13:23:28 -0500 Subject: [PATCH] Update to list based lookup --- 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 eea9540b..149d2f34 100644 --- a/src/engine/gameManager/BuildingManager.java +++ b/src/engine/gameManager/BuildingManager.java @@ -59,7 +59,7 @@ public enum BuildingManager { if (building.hirelings.size() == numOfSlots) return -1; - return building.hirelings.size() + 1; + return building.hirelings.size(); }