diff options
Diffstat (limited to 'src/server/scripts/Spells')
| -rw-r--r-- | src/server/scripts/Spells/spell_dk.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/scripts/Spells/spell_dk.cpp b/src/server/scripts/Spells/spell_dk.cpp index f1ad785c13d..7c2bb0bfaa5 100644 --- a/src/server/scripts/Spells/spell_dk.cpp +++ b/src/server/scripts/Spells/spell_dk.cpp @@ -1911,7 +1911,7 @@ public: oldAI = player->AI(); oldAIState = player->IsAIEnabled; - player->SetAI(static_cast<UnitAI*>(new player_ghoulAI(player, player->GetGhoulResurrectGhoulGUID()))); + player->SetAI(new player_ghoulAI(player, player->GetGhoulResurrectGhoulGUID())); player->IsAIEnabled = true; } @@ -1923,7 +1923,7 @@ public: player->IsAIEnabled = oldAIState; PlayerAI* thisAI = player->AI(); - player->SetAI(static_cast<UnitAI*>(oldAI)); + player->SetAI(oldAI); delete thisAI; // Dismiss ghoul if necessary |
