ソースを参照

BETA: Fixed NPE in quest '''Lost And Found''' (457).
* Reported by: d!g0
* Reviewed by: malyelfik

St3eT 11 年 前
コミット
18279868f3

+ 1 - 1
L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00457_LostAndFound/Q00457_LostAndFound.java

@@ -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))
 		{