diff options
| author | megamage <none@none> | 2009-03-20 21:09:16 -0600 |
|---|---|---|
| committer | megamage <none@none> | 2009-03-20 21:09:16 -0600 |
| commit | b2f5136215b21d0aa17e5d7668a3f88ad1c92aac (patch) | |
| tree | f9a77f68b4945fb3a77db2962250f07e79cf542d /src | |
| parent | e0aa64915b2fcc64b14a4c2eebf80dcf79607aa7 (diff) | |
*Fix a crash for summoned creatures without summer.
--HG--
branch : trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/TemporarySummon.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/TemporarySummon.cpp b/src/game/TemporarySummon.cpp index 07ab36c40d8..408c4e3ba4a 100644 --- a/src/game/TemporarySummon.cpp +++ b/src/game/TemporarySummon.cpp @@ -26,8 +26,9 @@ TempSummon::TempSummon(SummonPropertiesEntry const *properties, Unit *owner) : 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; } |
