From 0febe02227f5ac2272ff1e57c6b527300ffe6641 Mon Sep 17 00:00:00 2001 From: Chaz Brown Date: Fri, 25 Sep 2009 17:31:37 +0200 Subject: [PATCH] Fix HandleNpcAddCommand with bad creature ID - patch by SPP --HG-- branch : trunk --- src/game/Creature.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp index 8b55c9da61..9e15ce994d 100644 --- a/src/game/Creature.cpp +++ b/src/game/Creature.cpp @@ -738,8 +738,8 @@ bool Creature::Create(uint32 guidlow, Map *map, uint32 phaseMask, uint32 Entry, break; } LoadCreaturesAddon(); + SetDisplayId(GetCreatureInfo()->GetRandomValidModelIdIncludingNativeId(GetNativeDisplayId())); } - SetDisplayId(GetCreatureInfo()->GetRandomValidModelIdIncludingNativeId(GetNativeDisplayId())); return bResult; }