diff options
Diffstat (limited to 'src/game/ObjectMgr.cpp')
-rw-r--r-- | src/game/ObjectMgr.cpp | 6 |
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; } |