aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMachiavelli <none@none>2009-10-06 00:16:55 +0200
committerMachiavelli <none@none>2009-10-06 00:16:55 +0200
commitc7ca414af823d0eb9c3f0f5e3a38a846c62257fb (patch)
treee70ae751f7186f1f786f847105ceae8edc2fb8c7
parentea4bac68f34b03a5823c61248ec2c0bb98c18aff (diff)
* Prevent totems from having random models.
--HG-- branch : trunk
-rw-r--r--src/game/Creature.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp
index 305df6ad20e..5c3bf884e21 100644
--- a/src/game/Creature.cpp
+++ b/src/game/Creature.cpp
@@ -729,7 +729,7 @@ bool Creature::Create(uint32 guidlow, Map *map, uint32 phaseMask, uint32 Entry,
}
LoadCreaturesAddon();
CreatureModelInfo const *minfo = objmgr.GetCreatureModelRandomGender(GetNativeDisplayId());
- if (minfo) // Cancel load if no model defined
+ if (minfo && !isTotem()) // Cancel load if no model defined or if totem
{
uint32 display_id = minfo->modelid; // it can be different (for another gender)