Fixed shortcuts NPE due to missing sub level.

This commit is contained in:
MobiusDev 2016-12-05 15:50:24 +00:00
parent b9d3c99cf1
commit e4d77a1f2f

View File

@ -178,7 +178,7 @@ public class ShortCuts implements IRestorable
{ {
_shortCuts.clear(); _shortCuts.clear();
try (Connection con = DatabaseFactory.getInstance().getConnection(); try (Connection con = DatabaseFactory.getInstance().getConnection();
PreparedStatement statement = con.prepareStatement("SELECT charId, slot, page, type, shortcut_id, level FROM character_shortcuts WHERE charId=? AND class_index=?")) PreparedStatement statement = con.prepareStatement("SELECT charId, slot, page, type, shortcut_id, level, sub_level FROM character_shortcuts WHERE charId=? AND class_index=?"))
{ {
statement.setInt(1, _owner.getObjectId()); statement.setInt(1, _owner.getObjectId());
statement.setInt(2, _owner.getClassIndex()); statement.setInt(2, _owner.getClassIndex());