diff options
author | megamage <none@none> | 2009-03-20 09:38:42 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-03-20 09:38:42 -0600 |
commit | eea631a0a371d7069c624341f43a51bc0783adc8 (patch) | |
tree | 92007d7d04cc606d94fdfe68db627b07c3f6d32c /src | |
parent | 0838736ce7dce720f0c772c5efb0602712f6777d (diff) |
*Fix a crash caused by unsummon creature.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/TemporarySummon.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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; |