*Fix a bug that Hexlord crash the server.

--HG--
branch : trunk
This commit is contained in:
megamage
2008-11-28 23:14:30 -06:00
parent 903b30b38e
commit f2814351af

View File

@@ -433,7 +433,8 @@ struct TRINITY_DLL_DECL boss_hex_lord_malacrassAI : public ScriptedAI
}
break;
}
m_creature->CastSpell(target, PlayerAbility[PlayerClass][random].spell, false);
if(target)
m_creature->CastSpell(target, PlayerAbility[PlayerClass][random].spell, false);
}
};