Fixed shortcuts NPE due to missing sub level.
This commit is contained in:
parent
b9d3c99cf1
commit
e4d77a1f2f
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user