*Fix a crash for summoned creatures without summer.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-03-20 21:09:16 -06:00
parent e0aa64915b
commit b2f5136215
+2 -1
View File
@@ -26,8 +26,9 @@
TempSummon::TempSummon(SummonPropertiesEntry const *properties, Unit *owner) : TempSummon::TempSummon(SummonPropertiesEntry const *properties, Unit *owner) :
Creature(), m_type(TEMPSUMMON_MANUAL_DESPAWN), m_timer(0), m_lifetime(0) Creature(), m_type(TEMPSUMMON_MANUAL_DESPAWN), m_timer(0), m_lifetime(0)
, m_Properties(properties), m_summonerGUID(owner->GetGUID()) , m_Properties(properties)
{ {
m_summonerGUID = owner ? owner->GetGUID() : 0;
m_summonMask |= SUMMON_MASK_SUMMON; m_summonMask |= SUMMON_MASK_SUMMON;
} }