fixed crash when trying to spawn a not existing creature

--HG--
branch : trunk
This commit is contained in:
Rat
2010-05-18 09:32:51 +02:00
parent 953c267369
commit 5a0b2f3fef
+1 -2
View File
@@ -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;
}