fixed NullPointerException in updatePlayerQuest (fixes #3015448)

This commit is contained in:
Hendrik Brummermann 2010-06-13 12:27:07 +00:00
parent 952e512167
commit a9bba6c2ed
2 changed files with 2 additions and 2 deletions

View file

@ -55,7 +55,7 @@ public class DarkElvesCreatures implements ZoneConfigurator {
}
final Player player = (Player) killer;
// check if player started his quest already
if(!player.getQuest(QUEST_SLOT, 0).equals("started")) {
if(!player.hasQuest(QUEST_SLOT) || !player.getQuest(QUEST_SLOT, 0).equals("started")) {
return;
}
int slot=creatures.indexOf(victim);

View file

@ -63,7 +63,7 @@ public class DrowCreatures implements ZoneConfigurator {
}
final Player player = (Player) killer;
// check if player started his quest already
if(!player.getQuest(QUEST_SLOT, 0).equals("started")) {
if(!player.hasQuest(QUEST_SLOT) || !player.getQuest(QUEST_SLOT, 0).equals("started")) {
return;
}
int slot=creatures.indexOf(victim);