From 3761384dfb98427b579b06b47d40452d7a7ad798 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 23 May 2023 10:32:07 -0400 Subject: [PATCH] Bugfix; method is on rs. --- src/engine/db/handlers/dbBuildingHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/db/handlers/dbBuildingHandler.java b/src/engine/db/handlers/dbBuildingHandler.java index 8894e118..3eaeb8c1 100644 --- a/src/engine/db/handlers/dbBuildingHandler.java +++ b/src/engine/db/handlers/dbBuildingHandler.java @@ -662,7 +662,7 @@ public class dbBuildingHandler extends dbHandlerBase { ResultSet rs = preparedStatement.executeQuery(); if (rs.next()) - storedEnum = DbObjectType.valueOf(getString("type").toUpperCase()); + storedEnum = DbObjectType.valueOf(rs.getString("type").toUpperCase()); } catch (SQLException e) { Logger.error("Building", e);