aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/TemporarySummon.cpp3
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;
}