Core/Movement: PropagateSpeedChange should only be called on the top (current active) movement generator
Port From (https://github.com/TrinityCore/TrinityCore/commit/b521bf1d3a4e59abf0d7c15200de5fff7430d2ed)
This commit is contained in:
@@ -157,11 +157,14 @@ namespace Game.Movement
|
|||||||
|
|
||||||
public void PropagateSpeedChange()
|
public void PropagateSpeedChange()
|
||||||
{
|
{
|
||||||
for (int i = 0; i <= _top; ++i)
|
if (Empty())
|
||||||
{
|
return;
|
||||||
if (_slot[i] != null)
|
|
||||||
_slot[i].UnitSpeedChanged();
|
IMovementGenerator movement = Top();
|
||||||
}
|
if (movement == null)
|
||||||
|
return;
|
||||||
|
|
||||||
|
movement.UnitSpeedChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool GetDestination(out float x, out float y, out float z)
|
public bool GetDestination(out float x, out float y, out float z)
|
||||||
|
|||||||
Reference in New Issue
Block a user