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);