aboutsummaryrefslogtreecommitdiff
path: root/src/game/Creature.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/Creature.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/Creature.cpp')
-rw-r--r--src/game/Creature.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp
index 1fbea2da325..eb711a77ab5 100644
--- a/src/game/Creature.cpp
+++ b/src/game/Creature.cpp
@@ -263,8 +263,8 @@ bool Creature::InitEntry(uint32 Entry, uint32 team, const CreatureData *data )
CreatureInfo const *cinfo = normalInfo;
if(normalInfo->HeroicEntry)
{
- Map *map = MapManager::Instance().FindMap(GetMapId(), GetInstanceId());
- if(map && map->IsHeroic())
+ //we already have valid Map pointer for current creature!
+ if(GetMap()->IsHeroic())
{
cinfo = objmgr.GetCreatureTemplate(normalInfo->HeroicEntry);
if(!cinfo)