From fc7e1db9fba443d523f0af7e0e32a37bad0163d3 Mon Sep 17 00:00:00 2001 From: megamage Date: Mon, 20 Apr 2009 20:28:19 -0500 Subject: [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 --- src/game/TemporarySummon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/TemporarySummon.cpp') 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(); } -- cgit v1.2.3