mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[9638] Replace all C assert()s with MaNGOS ASSERT() macro.
This commit is contained in:
parent
4443737005
commit
51fd11c92c
34 changed files with 121 additions and 121 deletions
|
|
@ -101,7 +101,7 @@ bool Corpse::Create( uint32 guidlow, Player *owner)
|
|||
void Corpse::SaveToDB()
|
||||
{
|
||||
// bones should not be saved to DB (would be deleted on startup anyway)
|
||||
assert(GetType() != CORPSE_BONES);
|
||||
ASSERT(GetType() != CORPSE_BONES);
|
||||
|
||||
// prevent DB data inconsistence problems and duplicates
|
||||
CharacterDatabase.BeginTransaction();
|
||||
|
|
@ -126,7 +126,7 @@ void Corpse::SaveToDB()
|
|||
|
||||
void Corpse::DeleteBonesFromWorld()
|
||||
{
|
||||
assert(GetType() == CORPSE_BONES);
|
||||
ASSERT(GetType() == CORPSE_BONES);
|
||||
Corpse* corpse = GetMap()->GetCorpse(GetGUID());
|
||||
|
||||
if (!corpse)
|
||||
|
|
@ -141,7 +141,7 @@ void Corpse::DeleteBonesFromWorld()
|
|||
void Corpse::DeleteFromDB()
|
||||
{
|
||||
// bones should not be saved to DB (would be deleted on startup anyway)
|
||||
assert(GetType() != CORPSE_BONES);
|
||||
ASSERT(GetType() != CORPSE_BONES);
|
||||
|
||||
// all corpses (not bones)
|
||||
CharacterDatabase.PExecute("DELETE FROM corpse WHERE player = '%d' AND corpse_type <> '0'", GUID_LOPART(GetOwnerGUID()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue