Skip to content
Snippets Groups Projects
Commit 99d32513 authored by Zoey76's avatar Zoey76
Browse files

Minor NPE fix in Little Wings Big Adventure (421) quest

Reported by: JMD
parent c9be4c81
No related branches found
No related tags found
No related merge requests found
......@@ -89,6 +89,15 @@ public final class Q00421_LittleWingsBigAdventure extends Quest
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
if ("DESPAWN_GUARDIAN".equals(event))
{
if (npc != null)
{
npc.deleteMe();
}
return super.onAdvEvent(event, npc, player);
}
final QuestState qs = getQuestState(player, false);
String htmltext = null;
if (qs == null)
......@@ -172,14 +181,6 @@ public final class Q00421_LittleWingsBigAdventure extends Quest
htmltext = event;
break;
}
case "DESPAWN_GUARDIAN":
{
if (npc != null)
{
npc.deleteMe();
}
break;
}
}
return htmltext;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment