aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRat <none@none>2010-05-18 09:32:51 +0200
committerRat <none@none>2010-05-18 09:32:51 +0200
commit5a0b2f3fef0df690637066e97f8ad219f568e696 (patch)
treed9ec68b597311306c0afa4e66e071e8d2e5111ca
parent953c267369ee31c13150af633b780352125e6093 (diff)
fixed crash when trying to spawn a not existing creature
--HG-- branch : trunk
-rw-r--r--src/game/Creature.cpp3
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;
}