diff options
| author | megamage <none@none> | 2008-11-28 23:14:30 -0600 |
|---|---|---|
| committer | megamage <none@none> | 2008-11-28 23:14:30 -0600 |
| commit | f2814351afa9c3b14eb6d055e655ccbb762589e2 (patch) | |
| tree | 5bff0310a56a9d018d0d705b988e82cd19522438 /src | |
| parent | 903b30b38e22fe6ed2b3deefc1faeb09a880ee38 (diff) | |
*Fix a bug that Hexlord crash the server.
--HG--
branch : trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/bindings/scripts/scripts/zone/zulaman/boss_hexlord.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bindings/scripts/scripts/zone/zulaman/boss_hexlord.cpp b/src/bindings/scripts/scripts/zone/zulaman/boss_hexlord.cpp index 4d36a138765..09d24f4d42f 100644 --- a/src/bindings/scripts/scripts/zone/zulaman/boss_hexlord.cpp +++ b/src/bindings/scripts/scripts/zone/zulaman/boss_hexlord.cpp @@ -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); } }; |
