From 756e20633f96277a8732e8edd31c378c5a0849f5 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 17 Mar 2024 13:23:46 -0400 Subject: [PATCH] Warehouse deleted from db --- src/engine/devcmd/cmds/RemoveObjectCmd.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/devcmd/cmds/RemoveObjectCmd.java b/src/engine/devcmd/cmds/RemoveObjectCmd.java index dea5fbf2..ab30ec48 100644 --- a/src/engine/devcmd/cmds/RemoveObjectCmd.java +++ b/src/engine/devcmd/cmds/RemoveObjectCmd.java @@ -132,8 +132,8 @@ public class RemoveObjectCmd extends AbstractDevCmd { if ((building.getBlueprint() != null) && (building.getBlueprint().getBuildingGroup() == BuildingGroup.WAREHOUSE)) { City city = City.getCity(building.getParentZone().playerCityUUID); - if (city != null) - city.warehouse = null; + DbManager.WarehouseQueries.DELETE_WAREHOUSE(city.warehouse); + city.warehouse = null; }