diff --git a/src/engine/objects/Warehouse.java b/src/engine/objects/Warehouse.java index 1230ccb6..d896d7a7 100644 --- a/src/engine/objects/Warehouse.java +++ b/src/engine/objects/Warehouse.java @@ -57,8 +57,8 @@ public class Warehouse { for (Object key : resources.keySet()) { Enum.ResourceType resourceType = Enum.ResourceType.valueOf((String) key); - float value = ((Long) resources.get(key)).intValue(); - resources.put(resourceType, value); + int value = ((Long) resources.get(key)).intValue(); + this.resources.put(resourceType, value); } JSONArray lockedResources = (JSONArray) warehouse.get("locks");