aboutsummaryrefslogtreecommitdiff
path: root/src/game/RandomMovementGenerator.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-06-16 11:19:59 -0500
committermegamage <none@none>2009-06-16 11:19:59 -0500
commit3cf2be604275ec1ae7321b78dc6b62e559a5d7c7 (patch)
treed119d51bcee396d8fe913fa6b709ff45da2a2c2e /src/game/RandomMovementGenerator.cpp
parentaaec3c819167afb3f40410142654ed4d57926b10 (diff)
[8026] Obtain object's map directly by calling appropriate WorldObject::GetMap()/GetBaseMap() functions instead of accessing MapManager. Code cleanups. Big thanks Infinity for tests. Author: Ambal
--HG-- branch : trunk
Diffstat (limited to 'src/game/RandomMovementGenerator.cpp')
-rw-r--r--src/game/RandomMovementGenerator.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/game/RandomMovementGenerator.cpp b/src/game/RandomMovementGenerator.cpp
index e354e41827c..d93689514c9 100644
--- a/src/game/RandomMovementGenerator.cpp
+++ b/src/game/RandomMovementGenerator.cpp
@@ -54,8 +54,7 @@ RandomMovementGenerator<Creature>::_setRandomLocation(Creature &creature)
creature.GetHomePosition(X, Y, Z, ori);
z = creature.GetPositionZ();
- uint32 mapid=creature.GetMapId();
- Map const* map = MapManager::Instance().GetBaseMap(mapid);
+ Map const* map = creature.GetBaseMap();
// For 2D/3D system selection
bool is_land_ok = creature.canWalk();