Skip to content
Snippets Groups Projects
Commit 18279868 authored by St3eT's avatar St3eT
Browse files

BETA: Fixed NPE in quest '''Lost And Found''' (457).

* Reported by: d!g0
* Reviewed by: malyelfik
parent e13f31fa
No related branches found
No related tags found
No related merge requests found
......@@ -195,7 +195,7 @@ public final class Q00457_LostAndFound extends Quest
@Override
public String onKill(L2Npc npc, L2PcInstance player, boolean isSummon)
{
QuestState st = player.getQuestState(getName());
final QuestState st = (player.getQuestState(getName()) == null) ? newQuestState(player) : player.getQuestState(getName());
if ((getRandom(100) < CHANCE_SPAWN) && st.isNowAvailable() && (player.getLevel() >= MIN_LV))
{
......
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