View Single Post
  #3  
Old 08-15-2010, 05:47 AM
Derision
Developer
 
Join Date: Feb 2004
Location: UK
Posts: 1,540
Default

This should fix it:
Code:
Index: spdat.cpp
===================================================================
--- spdat.cpp   (revision 1621)
+++ spdat.cpp   (working copy)
@@ -216,7 +216,9 @@

 bool IsBeneficialSpell(int16 spell_id)
 {
-       // EverHood - These spells are actually detrimental
+       if(!IsValidSpell(spell_id))
+               return false;
+
        if(spells[spell_id].goodEffect == 1){
                SpellTargetType tt = spells[spell_id].targettype;
                if(tt != ST_Self || tt != ST_Pet){
I'll commit it to the SVN later on.
Reply With Quote