diff options
author | QAston <none@none> | 2009-08-01 00:20:32 +0200 |
---|---|---|
committer | QAston <none@none> | 2009-08-01 00:20:32 +0200 |
commit | 1d96091d2a4f9a886a4d3cd80ec3c873d395dbdd (patch) | |
tree | 88589d294e7eb5ccabf7e667970b116e6a2670a6 /src/game/ObjectAccessor.cpp | |
parent | 0db1fd6c26b90241cfe039f2e2b3e35d10cb9cbd (diff) |
*Improvements in map managing.
--HG--
branch : trunk
Diffstat (limited to 'src/game/ObjectAccessor.cpp')
-rw-r--r-- | src/game/ObjectAccessor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/ObjectAccessor.cpp b/src/game/ObjectAccessor.cpp index cd58d564106..b334ef8c5a8 100644 --- a/src/game/ObjectAccessor.cpp +++ b/src/game/ObjectAccessor.cpp @@ -268,7 +268,7 @@ ObjectAccessor::RemoveCorpse(Corpse *corpse) } void -ObjectAccessor::AddCorpse(Corpse *corpse) +ObjectAccessor::AddCorpse(Corpse *corpse, uint32 mapId, uint32 instanceId) { assert(corpse && corpse->GetType() != CORPSE_BONES); @@ -280,7 +280,7 @@ ObjectAccessor::AddCorpse(Corpse *corpse) CellPair cell_pair = Trinity::ComputeCellPair(corpse->GetPositionX(), corpse->GetPositionY()); uint32 cell_id = (cell_pair.y_coord*TOTAL_NUMBER_OF_CELLS_PER_MAP) + cell_pair.x_coord; - objmgr.AddCorpseCellData(corpse->GetMapId(), cell_id, corpse->GetOwnerGUID(), corpse->GetInstanceId()); + objmgr.AddCorpseCellData(mapId, cell_id, corpse->GetOwnerGUID(), instanceId); } void |