From ce59e262bddf8c2cd0c216753aed2c41ef1463fb Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 25 Aug 2024 08:03:50 -0400 Subject: [PATCH] In case rank drops below -1 --- src/engine/gameManager/BuildingManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/gameManager/BuildingManager.java b/src/engine/gameManager/BuildingManager.java index 8907339a..3a77e948 100644 --- a/src/engine/gameManager/BuildingManager.java +++ b/src/engine/gameManager/BuildingManager.java @@ -798,7 +798,7 @@ public enum BuildingManager { // Attempt to write to database or delete the building // if we are destroying it. - if (rank == -1) + if (rank <= -1) success = DbManager.BuildingQueries.DELETE_FROM_DATABASE(building); else success = DbManager.BuildingQueries.updateBuildingRank(building, rank);