Fixed shortcut deletion NPE.
This commit is contained in:
@@ -162,6 +162,10 @@ public class ShortCuts implements IRestorable
|
|||||||
for (int shotId : _owner.getAutoSoulShot())
|
for (int shotId : _owner.getAutoSoulShot())
|
||||||
{
|
{
|
||||||
L2ItemInstance item = _owner.getInventory().getItemByObjectId(shotId);
|
L2ItemInstance item = _owner.getInventory().getItemByObjectId(shotId);
|
||||||
|
if ((item == null) || (item.getEtcItem() == null) || (item.getEtcItem().getDefaultAction() == null))
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
switch (item.getEtcItem().getDefaultAction())
|
switch (item.getEtcItem().getDefaultAction())
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user