diff options
author | Rat <none@none> | 2010-05-18 09:32:51 +0200 |
---|---|---|
committer | Rat <none@none> | 2010-05-18 09:32:51 +0200 |
commit | 5a0b2f3fef0df690637066e97f8ad219f568e696 (patch) | |
tree | d9ec68b597311306c0afa4e66e071e8d2e5111ca | |
parent | 953c267369ee31c13150af633b780352125e6093 (diff) |
fixed crash when trying to spawn a not existing creature
--HG--
branch : trunk
-rw-r--r-- | src/game/Creature.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp index 4eefce656a7..48ec8abbf11 100644 --- a/src/game/Creature.cpp +++ b/src/game/Creature.cpp @@ -802,10 +802,9 @@ bool Creature::Create(uint32 guidlow, Map *map, uint32 phaseMask, uint32 Entry, { AddUnitMovementFlag(MOVEMENTFLAG_SWIMMING); } + LastUsedScriptID = GetCreatureInfo()->ScriptID; } - LastUsedScriptID = m_creatureInfo->ScriptID; - return bResult; } |