From 5a0b2f3fef0df690637066e97f8ad219f568e696 Mon Sep 17 00:00:00 2001 From: Rat Date: Tue, 18 May 2010 09:32:51 +0200 Subject: fixed crash when trying to spawn a not existing creature --HG-- branch : trunk --- src/game/Creature.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/game/Creature.cpp') 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; } -- cgit v1.2.3