aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Movement/MotionMaster.cpp
diff options
context:
space:
mode:
authorChaplain <aionthefirst@gmail.com>2012-02-17 00:19:14 +0300
committerChaplain <aionthefirst@gmail.com>2012-02-17 00:19:14 +0300
commitaf905468355877dd135cd6d1a793765bc2ef9eda (patch)
tree4132c26091b856b89ff1a8896b87b3b80da4a898 /src/server/game/Movement/MotionMaster.cpp
parentba4d1c36f1b947f17ffc394afac11e9fb42d0b9b (diff)
Core/Movement: Fix MoveJump handling.
*Closes #5238 issue *Fix possible crash in MotionMaster
Diffstat (limited to 'src/server/game/Movement/MotionMaster.cpp')
-rwxr-xr-xsrc/server/game/Movement/MotionMaster.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/server/game/Movement/MotionMaster.cpp b/src/server/game/Movement/MotionMaster.cpp
index 954a193c498..27816753ca7 100755
--- a/src/server/game/Movement/MotionMaster.cpp
+++ b/src/server/game/Movement/MotionMaster.cpp
@@ -365,10 +365,7 @@ void MotionMaster::MoveJump(float x, float y, float z, float speedXY, float spee
init.SetParabolic(max_height,0);
init.SetVelocity(speedXY);
init.Launch();
- if (_owner->GetTypeId() == TYPEID_PLAYER)
- Mutate(new EffectMovementGenerator(id), MOTION_SLOT_CONTROLLED);
- else
- Mutate(new EffectMovementGenerator(id), MOTION_SLOT_ACTIVE);
+ Mutate(new EffectMovementGenerator(id), MOTION_SLOT_CONTROLLED);
}
void MotionMaster::MoveFall(uint32 id/*=0*/)