*Improvements in map managing.

--HG--
branch : trunk
This commit is contained in:
QAston
2009-08-01 00:20:32 +02:00
parent 0db1fd6c26
commit 1d96091d2a
24 changed files with 276 additions and 305 deletions

View File

@@ -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;
}