diff options
| author | QAston <none@none> | 2009-08-03 12:52:31 +0200 |
|---|---|---|
| committer | QAston <none@none> | 2009-08-03 12:52:31 +0200 |
| commit | 8777efd03cbad7036c371c88b0212e8425c5bf59 (patch) | |
| tree | f7e806455220abbdb599d52c03d9455f8c233ec6 /src/game/ObjectAccessor.cpp | |
| parent | 71adccb1c77d45d9663a84fcc7adfcc5ec89d19d (diff) | |
*Add some crash prevention checks.
--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 b334ef8c5a8..cd58d564106 100644 --- a/src/game/ObjectAccessor.cpp +++ b/src/game/ObjectAccessor.cpp @@ -268,7 +268,7 @@ ObjectAccessor::RemoveCorpse(Corpse *corpse) } void -ObjectAccessor::AddCorpse(Corpse *corpse, uint32 mapId, uint32 instanceId) +ObjectAccessor::AddCorpse(Corpse *corpse) { assert(corpse && corpse->GetType() != CORPSE_BONES); @@ -280,7 +280,7 @@ ObjectAccessor::AddCorpse(Corpse *corpse, uint32 mapId, uint32 instanceId) 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(mapId, cell_id, corpse->GetOwnerGUID(), instanceId); + objmgr.AddCorpseCellData(corpse->GetMapId(), cell_id, corpse->GetOwnerGUID(), corpse->GetInstanceId()); } void |
