mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 01:15:35 +01:00
*Improvements in map managing.
--HG-- branch : trunk
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user