*Fix a crash caused by unsummon creature.
--HG-- branch : trunk
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user