*use ASSERT macro instead of regular assert for better output.

--HG--
branch : trunk
This commit is contained in:
QAston
2010-07-30 20:04:28 +02:00
parent 3dc29732b7
commit 48b360097c
50 changed files with 261 additions and 261 deletions
+3 -3
View File
@@ -329,7 +329,7 @@ struct EnchantDuration
{
EnchantDuration() : item(NULL), slot(MAX_ENCHANTMENT_SLOT), leftduration(0) {};
EnchantDuration(Item * _item, EnchantmentSlot _slot, uint32 _leftduration) : item(_item), slot(_slot),
leftduration(_leftduration){ assert(item); };
leftduration(_leftduration){ ASSERT(item); };
Item * item;
EnchantmentSlot slot;
@@ -1518,7 +1518,7 @@ class Player : public Unit, public GridObject<Player>
void AddMItem(Item* it)
{
ASSERT(it);
//assert deleted, because items can be added before loading
//ASSERT deleted, because items can be added before loading
mMitems[it->GetGUIDLow()] = it;
}
@@ -2674,7 +2674,7 @@ template <class T> T Player::ApplySpellMod(uint32 spellId, SpellModOp op, T &bas
// Charges can be set only for mods with auras
if (!mod->ownerAura)
assert(mod->charges == 0);
ASSERT(mod->charges == 0);
if (!IsAffectedBySpellmod(spellInfo,mod,spell))
continue;