Browse Source

Proper null test needed

bugfix-slot-update-2
MagicBot 11 months ago
parent
commit
cbb3fd0b24
  1. 2
      src/engine/gameManager/BuildingManager.java

2
src/engine/gameManager/BuildingManager.java

@ -55,7 +55,7 @@ public enum BuildingManager { @@ -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;

Loading…
Cancel
Save