From e4d77a1f2ff65e249eb64a54ee096d65fab8070d Mon Sep 17 00:00:00 2001 From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com> Date: Mon, 5 Dec 2016 15:50:24 +0000 Subject: [PATCH] Fixed shortcuts NPE due to missing sub level. --- .../java/com/l2jmobius/gameserver/model/ShortCuts.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/L2J_Mobius_Underground/java/com/l2jmobius/gameserver/model/ShortCuts.java b/L2J_Mobius_Underground/java/com/l2jmobius/gameserver/model/ShortCuts.java index 4af1894e81..2bbf25dee0 100644 --- a/L2J_Mobius_Underground/java/com/l2jmobius/gameserver/model/ShortCuts.java +++ b/L2J_Mobius_Underground/java/com/l2jmobius/gameserver/model/ShortCuts.java @@ -178,7 +178,7 @@ public class ShortCuts implements IRestorable { _shortCuts.clear(); 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(2, _owner.getClassIndex());