From b8bd71616b757f47252e6026306b8db13fc83c3f Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 17 Mar 2024 11:45:18 -0400 Subject: [PATCH] Setting city when loading --- src/engine/db/handlers/dbWarehouseHandler.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/engine/db/handlers/dbWarehouseHandler.java b/src/engine/db/handlers/dbWarehouseHandler.java index 18995208..eda889c3 100644 --- a/src/engine/db/handlers/dbWarehouseHandler.java +++ b/src/engine/db/handlers/dbWarehouseHandler.java @@ -115,6 +115,7 @@ public class dbWarehouseHandler extends dbHandlerBase { JSONObject jsonObject = (JSONObject) jsonParser.parse(rs.getString("warehouse")); City city = City.getCity(cityUID); city.warehouse = new Warehouse(jsonObject); + city.warehouse.city = city; // Locate warehouse building for (Building building : city.parentZone.zoneBuildingSet) {