diff options
| author | megamage <none@none> | 2009-07-16 11:49:00 +0800 |
|---|---|---|
| committer | megamage <none@none> | 2009-07-16 11:49:00 +0800 |
| commit | 208087ff6ee592150b1ed387bbc135566a02a359 (patch) | |
| tree | 42b3b460ce2276259e2673bc8b254e0812af1fbb /src/game/OutdoorPvPSI.cpp | |
| parent | 762528c5dd7908de47f2c2a7dcc5e7c95eb79744 (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/OutdoorPvPSI.cpp')
| -rw-r--r-- | src/game/OutdoorPvPSI.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/OutdoorPvPSI.cpp b/src/game/OutdoorPvPSI.cpp index c1f47db49c7..33a304f2f6b 100644 --- a/src/game/OutdoorPvPSI.cpp +++ b/src/game/OutdoorPvPSI.cpp @@ -156,7 +156,7 @@ bool OutdoorPvPSI::HandleDropFlag(Player *plr, uint32 spellId) { // he dropped it further, summon mound GameObject * go = new GameObject; - Map * map = MapManager::Instance().GetMap(plr->GetMapId(), plr); + Map * map = plr->GetMap(); if(!map) { delete go; @@ -186,7 +186,7 @@ bool OutdoorPvPSI::HandleDropFlag(Player *plr, uint32 spellId) { // he dropped it further, summon mound GameObject * go = new GameObject; - Map * map = MapManager::Instance().GetMap(plr->GetMapId(), plr); + Map * map = plr->GetMap(); if(!map) { delete go; |
