From eea631a0a371d7069c624341f43a51bc0783adc8 Mon Sep 17 00:00:00 2001 From: megamage Date: Fri, 20 Mar 2009 09:38:42 -0600 Subject: *Fix a crash caused by unsummon creature. --HG-- branch : trunk --- src/game/TemporarySummon.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/game/TemporarySummon.cpp') diff --git a/src/game/TemporarySummon.cpp b/src/game/TemporarySummon.cpp index 110549fb6e0..77fbfa439e5 100644 --- a/src/game/TemporarySummon.cpp +++ b/src/game/TemporarySummon.cpp @@ -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; -- cgit v1.2.3