*use ASSERT macro instead of regular assert for better output.
--HG-- branch : trunk
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user