aboutsummaryrefslogtreecommitdiff
path: root/src/game/Level3.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-07-16 11:49:00 +0800
committermegamage <none@none>2009-07-16 11:49:00 +0800
commit208087ff6ee592150b1ed387bbc135566a02a359 (patch)
tree42b3b460ce2276259e2673bc8b254e0812af1fbb /src/game/Level3.cpp
parent762528c5dd7908de47f2c2a7dcc5e7c95eb79744 (diff)
[8182] Store and use Map* pointer in WorldObject instead map ids for speedup Author: Ambal
Also some code logic cleanups. Changes let make more cleanups in base map access and other places, but this chnages not inlcuded in patch. *This patch may cause crash. --HG-- branch : trunk
Diffstat (limited to 'src/game/Level3.cpp')
-rw-r--r--src/game/Level3.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Level3.cpp b/src/game/Level3.cpp
index eb3d462d68f..4dae4f79ef2 100644
--- a/src/game/Level3.cpp
+++ b/src/game/Level3.cpp
@@ -6206,7 +6206,7 @@ bool ChatHandler::HandleRespawnCommand(const char* /*args*/)
TypeContainerVisitor<Trinity::WorldObjectWorker<Trinity::RespawnDo>, GridTypeMapContainer > obj_worker(worker);
CellLock<GridReadGuard> cell_lock(cell, p);
- cell_lock->Visit(cell_lock, obj_worker, *MapManager::Instance().GetMap(pl->GetMapId(), pl));
+ cell_lock->Visit(cell_lock, obj_worker, *pl->GetMap());
return true;
}