Jump to content

[10234][crash fix]In bool IsNoStackAuraDueToAura

Guest tehmarto

Recommended Posts

in SpellMgr.cpp

What bug does the patch fix? What features does the patch add?

It fixes mistaken J with I. :)

For which repository revision was the patch created?

Should work with any.

Who has been writing this patch? Please include either forum user names or email addresses.


@@ -298,11 +298,11 @@ bool IsNoStackAuraDueToAura(uint32 spellId_1, uint32 spellId_2)
    if(!spellInfo_1 || !spellInfo_2) return false;
    if(spellInfo_1->Id == spellId_2) return false;

    for (int32 i = 0; i < MAX_EFFECT_INDEX; ++i)
-        for (int32 j = 0; i < MAX_EFFECT_INDEX; ++j)
+        for (int32 j = 0; j < MAX_EFFECT_INDEX; ++j)
            if (spellInfo_1->Effect[i] == spellInfo_2->Effect[j] 
                && spellInfo_1->EffectApplyAuraName[i] == spellInfo_2->EffectApplyAuraName[j]
                && spellInfo_1->EffectMiscValue[i] == spellInfo_2->EffectMiscValue[j]
                && spellInfo_1->EffectItemType[i] == spellInfo_2->EffectItemType[j])

Link to comment
Share on other sites

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use