fixed crash when trying to spawn a not existing creature
--HG-- branch : trunk
This commit is contained in:
@@ -802,10 +802,9 @@ bool Creature::Create(uint32 guidlow, Map *map, uint32 phaseMask, uint32 Entry,
|
|||||||
{
|
{
|
||||||
AddUnitMovementFlag(MOVEMENTFLAG_SWIMMING);
|
AddUnitMovementFlag(MOVEMENTFLAG_SWIMMING);
|
||||||
}
|
}
|
||||||
|
LastUsedScriptID = GetCreatureInfo()->ScriptID;
|
||||||
}
|
}
|
||||||
|
|
||||||
LastUsedScriptID = m_creatureInfo->ScriptID;
|
|
||||||
|
|
||||||
return bResult;
|
return bResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user