diff --git a/src/engine/gameManager/BuildingManager.java b/src/engine/gameManager/BuildingManager.java index 9032880c..74357f84 100644 --- a/src/engine/gameManager/BuildingManager.java +++ b/src/engine/gameManager/BuildingManager.java @@ -342,8 +342,10 @@ public enum BuildingManager { // Remove any cooking items from collections // to ensure we don't leak memory. - for (Item item : workOrder.cooking) + for (Item item : workOrder.cooking) { + DbManager.removeFromCache(item); ForgeManager.itemWorkOrderLookup.remove(item); + } DbManager.WarehouseQueries.DELETE_WORKORDER(workOrder); }