From fc48248221b39ec2aeb8f156efee60625daec690 Mon Sep 17 00:00:00 2001 From: megamage Date: Mon, 20 Apr 2009 21:15:33 -0500 Subject: *Fix a typo in ProcDamageAndSpellFor. Note: in TC2 this function is handled in a better way, and do not need this. --HG-- branch : trunk --- src/game/Unit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 72e8deb010c..7b1ca779871 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -11412,7 +11412,7 @@ uint32 createProcExtendMask(SpellNonMeleeDamage *damageInfo, SpellMissInfo missC void Unit::ProcDamageAndSpellFor( bool isVictim, Unit * pTarget, uint32 procFlag, uint32 procExtra, WeaponAttackType attType, SpellEntry const * procSpell, uint32 damage ) { ++m_procDeep; - if (++m_procDeep > 5) + if (m_procDeep > 5) { sLog.outError("Prevent possible stack owerflow in Unit::ProcDamageAndSpellFor"); if (procSpell) -- cgit v1.2.3