Browse Source

Bugfix; method is on rs.

master
MagicBot 2 years ago
parent
commit
3761384dfb
  1. 2
      src/engine/db/handlers/dbBuildingHandler.java

2
src/engine/db/handlers/dbBuildingHandler.java

@ -662,7 +662,7 @@ public class dbBuildingHandler extends dbHandlerBase {
ResultSet rs = preparedStatement.executeQuery(); ResultSet rs = preparedStatement.executeQuery();
if (rs.next()) if (rs.next())
storedEnum = DbObjectType.valueOf(getString("type").toUpperCase()); storedEnum = DbObjectType.valueOf(rs.getString("type").toUpperCase());
} catch (SQLException e) { } catch (SQLException e) {
Logger.error("Building", e); Logger.error("Building", e);

Loading…
Cancel
Save