Proper null test needed

This commit is contained in:
2024-02-04 12:27:17 -05:00
parent 944269b78e
commit cbb3fd0b24
+1 -1
View File
@@ -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;