*Improvements in map managing.
--HG-- branch : trunk
This commit is contained in:
1 parent
0db1fd6c26
commit
1d96091d2a
24 files changed
+276
-305
No files matched your search
@@ -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