diff options
| author | megamage <none@none> | 2009-04-20 20:28:19 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-04-20 20:28:19 -0500 |
| commit | fc7e1db9fba443d523f0af7e0e32a37bad0163d3 (patch) | |
| tree | 1ca0cb3689dc076782b8f84589dfd1fbe78fe9ac /src/game/TemporarySummon.cpp | |
| parent | b4046ddf884871ec6d99df27c9f62370aa54036c (diff) | |
[7690] Move GetCreature/GetGameobject to class Map. Author: VladimirMangos
* This let get objects at map without reference to player or another object.
* Simplify future implementation for per-map storage for like objects
--HG--
branch : trunk
Diffstat (limited to 'src/game/TemporarySummon.cpp')
| -rw-r--r-- | src/game/TemporarySummon.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/TemporarySummon.cpp b/src/game/TemporarySummon.cpp index 10b4eedb1c8..ed0849a98d6 100644 --- a/src/game/TemporarySummon.cpp +++ b/src/game/TemporarySummon.cpp @@ -198,7 +198,7 @@ void TempSummon::InitSummon(uint32 duration) { if(owner->m_SummonSlot[slot] && owner->m_SummonSlot[slot] != GetGUID()) { - Creature *OldTotem = ObjectAccessor::GetCreature(*this, owner->m_SummonSlot[slot]); + Creature *OldTotem = GetMap()->GetCreature(owner->m_SummonSlot[slot]); if(OldTotem && OldTotem->isSummon()) ((TempSummon*)OldTotem)->UnSummon(); } |
