*Fix a crash caused by unsummon creature.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-03-20 09:38:42 -06:00
parent 0838736ce7
commit eea631a0a3
+4
View File
@@ -180,6 +180,10 @@ void TempSummon::UnSummon()
{
if(owner->GetTypeId() == TYPEID_UNIT && ((Creature*)owner)->IsAIEnabled)
((Creature*)owner)->AI()->SummonedCreatureDespawn(this);
if(!m_properties)
return;
if(uint32 slot = m_properties->Slot)
{
--slot;