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/TaxiHandler.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/TaxiHandler.cpp')
-rw-r--r-- | src/game/TaxiHandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/TaxiHandler.cpp b/src/game/TaxiHandler.cpp index 75db8698ea2..24c6aca147a 100644 --- a/src/game/TaxiHandler.cpp +++ b/src/game/TaxiHandler.cpp @@ -48,7 +48,7 @@ void WorldSession::HandleTaxiNodeStatusQueryOpcode( WorldPacket & recv_data ) void WorldSession::SendTaxiStatus( uint64 guid ) { // cheating checks - Creature *unit = ObjectAccessor::GetCreature(*_player, guid); + Creature *unit = GetPlayer()->GetMap()->GetCreature(guid); if (!unit) { sLog.outDebug( "WorldSession::SendTaxiStatus - Unit (GUID: %u) not found.", uint32(GUID_LOPART(guid)) ); |