From 4a9a496a5dbc5f918718c5873c6bc3f82a4fba90 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 17 Mar 2024 09:51:50 -0400 Subject: [PATCH] Refactor warehouse part two. --- src/engine/db/handlers/dbWarehouseHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/db/handlers/dbWarehouseHandler.java b/src/engine/db/handlers/dbWarehouseHandler.java index 025311eb..8aa4f9a7 100644 --- a/src/engine/db/handlers/dbWarehouseHandler.java +++ b/src/engine/db/handlers/dbWarehouseHandler.java @@ -112,7 +112,7 @@ public class dbWarehouseHandler extends dbHandlerBase { int cityUID = rs.getInt("cityUID"); JSONObject jsonObject = (JSONObject) jsonParser.parse(rs.getString("template")); City city = City.getCity(cityUID); - Warehouse warehouse = new Warehouse(jsonObject); + city.warehouse = new Warehouse(jsonObject); } } catch (Exception e) {