aboutsummaryrefslogtreecommitdiff
path: root/src/game/Level3.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Level3.cpp')
-rw-r--r--src/game/Level3.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/game/Level3.cpp b/src/game/Level3.cpp
index f1ba79e7fac..b82a6a845da 100644
--- a/src/game/Level3.cpp
+++ b/src/game/Level3.cpp
@@ -5690,8 +5690,9 @@ bool ChatHandler::HandleQuestComplete(const char* args)
}
else if(creature > 0)
{
- for(uint16 z = 0; z < creaturecount; ++z)
- player->KilledMonster(creature,0);
+ if(CreatureInfo const* cInfo = objmgr.GetCreatureTemplate(creature))
+ for(uint16 z = 0; z < creaturecount; ++z)
+ player->KilledMonster(cInfo,0);
}
else if(creature < 0)
{