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/MiscHandler.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/MiscHandler.cpp')
-rw-r--r-- | src/game/MiscHandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/MiscHandler.cpp b/src/game/MiscHandler.cpp index 0672c38ee21..ce86026af90 100644 --- a/src/game/MiscHandler.cpp +++ b/src/game/MiscHandler.cpp @@ -105,7 +105,7 @@ void WorldSession::HandleGossipSelectOptionOpcode( WorldPacket & recv_data ) } else if(IS_GAMEOBJECT_GUID(guid)) { - go = ObjectAccessor::GetGameObject(*_player, guid); + go = _player->GetMap()->GetGameObject(guid); if (!go) { sLog.outDebug( "WORLD: HandleGossipSelectOptionOpcode - GameObject (GUID: %u) not found.", uint32(GUID_LOPART(guid)) ); |