diff options
author | megamage <none@none> | 2009-05-03 13:02:38 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-05-03 13:02:38 -0500 |
commit | 87606e66ff63e88c4f2029a760fb2dad09a2a8bb (patch) | |
tree | f413b0bb5f6847fb1ae97063d7ffd501cfa3fcea /src/game/TemporarySummon.cpp | |
parent | 833cdf5fe67457714203364655e975bdacf00cf4 (diff) |
*Fix a crash when player log in. Sorry.
--HG--
branch : trunk
Diffstat (limited to 'src/game/TemporarySummon.cpp')
-rw-r--r-- | src/game/TemporarySummon.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/game/TemporarySummon.cpp b/src/game/TemporarySummon.cpp index ff67f19aca3..8e661c36649 100644 --- a/src/game/TemporarySummon.cpp +++ b/src/game/TemporarySummon.cpp @@ -262,6 +262,10 @@ Minion::Minion(SummonPropertiesEntry const *properties, Unit *owner) : TempSummo { assert(m_owner); m_summonMask |= SUMMON_MASK_MINION; +} + +void Minion::InitSummon(uint32 duration) +{ SetUInt64Value(UNIT_FIELD_SUMMONEDBY, m_owner->GetGUID()); if(m_owner->GetTypeId() == TYPEID_PLAYER) @@ -269,10 +273,7 @@ Minion::Minion(SummonPropertiesEntry const *properties, Unit *owner) : TempSummo m_ControlledByPlayer = true; SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_PVP_ATTACKABLE); } -} -void Minion::InitSummon(uint32 duration) -{ TempSummon::InitSummon(duration); SetReactState(REACT_PASSIVE); |