diff options
| author | treeston <treeston.mmoc@gmail.com> | 2016-02-24 15:47:57 +0100 |
|---|---|---|
| committer | treeston <treeston.mmoc@gmail.com> | 2016-02-24 15:47:57 +0100 |
| commit | 1fbe7979fff0e67c6d390113f8e4a1099db8193d (patch) | |
| tree | ea5aacf63860b79b8eb468cb7307acf3ac244f85 /src/server/scripts/Spells | |
| parent | 4e4b2b9a138650ebe6087e18dc392f08dafe4e37 (diff) | |
Nobody saw that.
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 |
