aboutsummaryrefslogtreecommitdiff
path: root/src/game/ObjectMgr.cpp
diff options
context:
space:
mode:
authorQAston <none@none>2009-08-03 12:52:31 +0200
committerQAston <none@none>2009-08-03 12:52:31 +0200
commit8777efd03cbad7036c371c88b0212e8425c5bf59 (patch)
treef7e806455220abbdb599d52c03d9455f8c233ec6 /src/game/ObjectMgr.cpp
parent71adccb1c77d45d9663a84fcc7adfcc5ec89d19d (diff)
*Add some crash prevention checks.
--HG-- branch : trunk
Diffstat (limited to 'src/game/ObjectMgr.cpp')
-rw-r--r--src/game/ObjectMgr.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp
index d249c60a175..7557c23d072 100644
--- a/src/game/ObjectMgr.cpp
+++ b/src/game/ObjectMgr.cpp
@@ -6483,16 +6483,14 @@ void ObjectMgr::LoadCorpses()
uint32 guid = fields[result->GetFieldCount()-1].GetUInt32();
- uint32 mapId;
- uint32 instanceId;
Corpse *corpse = new Corpse;
- if(!corpse->LoadFromDB(guid,fields,mapId,instanceId))
+ if(!corpse->LoadFromDB(guid,fields))
{
delete corpse;
continue;
}
- ObjectAccessor::Instance().AddCorpse(corpse,mapId,instanceId);
+ ObjectAccessor::Instance().AddCorpse(corpse);
++count;
}