From 3cf2be604275ec1ae7321b78dc6b62e559a5d7c7 Mon Sep 17 00:00:00 2001 From: megamage Date: Tue, 16 Jun 2009 11:19:59 -0500 Subject: [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 --- src/game/ConfusedMovementGenerator.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/game/ConfusedMovementGenerator.cpp') diff --git a/src/game/ConfusedMovementGenerator.cpp b/src/game/ConfusedMovementGenerator.cpp index cc64a6ae31f..98a8973612f 100644 --- a/src/game/ConfusedMovementGenerator.cpp +++ b/src/game/ConfusedMovementGenerator.cpp @@ -38,9 +38,8 @@ ConfusedMovementGenerator::Initialize(T &unit) x = unit.GetPositionX(); y = unit.GetPositionY(); z = unit.GetPositionZ(); - uint32 mapid=unit.GetMapId(); - Map const* map = MapManager::Instance().GetBaseMap(mapid); + Map const* map = unit.GetBaseMap(); i_nextMove = 1; -- cgit v1.2.3