aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/AI/SmartScripts
diff options
context:
space:
mode:
authorVincent_Michael <Vincent_Michael@gmx.de>2013-02-03 00:38:34 +0100
committerVincent_Michael <Vincent_Michael@gmx.de>2013-02-03 00:38:34 +0100
commit847cafc121d1fb2557178e6832225ece486fcadb (patch)
tree10eb4ccea846919cc35917b63bfdeeb2c46fd32d /src/server/game/AI/SmartScripts
parent2c2fe7d464a819821a8b8eb58af7cc02380ebbd2 (diff)
Scripts/Misc: Some code optimisations
Diffstat (limited to 'src/server/game/AI/SmartScripts')
-rw-r--r--src/server/game/AI/SmartScripts/SmartScript.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/AI/SmartScripts/SmartScript.cpp b/src/server/game/AI/SmartScripts/SmartScript.cpp
index 0536d8c7317..690e87ae19c 100644
--- a/src/server/game/AI/SmartScripts/SmartScript.cpp
+++ b/src/server/game/AI/SmartScripts/SmartScript.cpp
@@ -1898,7 +1898,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
break;
for (ObjectList::const_iterator itr = targets->begin(); itr != targets->end(); ++itr)
- if (IsCreature(*itr))
+ if (Creature* creature = (*itr)->ToCreature())
{
(*itr)->ToCreature()->GetMotionMaster()->Clear();
(*itr)->ToCreature()->GetMotionMaster()->MoveJump(e.target.x, e.target.y, e.target.z, (float)e.action.jump.speedxy, (float)e.action.jump.speedz);