aboutsummaryrefslogtreecommitdiff
path: root/src/game/ObjectMgr.cpp
diff options
context:
space:
mode:
authorQAston <none@none>2009-08-01 00:20:32 +0200
committerQAston <none@none>2009-08-01 00:20:32 +0200
commit1d96091d2a4f9a886a4d3cd80ec3c873d395dbdd (patch)
tree88589d294e7eb5ccabf7e667970b116e6a2670a6 /src/game/ObjectMgr.cpp
parent0db1fd6c26b90241cfe039f2e2b3e35d10cb9cbd (diff)
*Improvements in map managing.
--HG-- branch : trunk
Diffstat (limited to 'src/game/ObjectMgr.cpp')
-rw-r--r--src/game/ObjectMgr.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp
index 7557c23d072..d249c60a175 100644
--- a/src/game/ObjectMgr.cpp
+++ b/src/game/ObjectMgr.cpp
@@ -6483,14 +6483,16 @@ void ObjectMgr::LoadCorpses()
uint32 guid = fields[result->GetFieldCount()-1].GetUInt32();
+ uint32 mapId;
+ uint32 instanceId;
Corpse *corpse = new Corpse;
- if(!corpse->LoadFromDB(guid,fields))
+ if(!corpse->LoadFromDB(guid,fields,mapId,instanceId))
{
delete corpse;
continue;
}
- ObjectAccessor::Instance().AddCorpse(corpse);
+ ObjectAccessor::Instance().AddCorpse(corpse,mapId,instanceId);
++count;
}