Core/Movement: Fix assertion triggered in SplineChainMovementGenerator
Port From (https://github.com/TrinityCore/TrinityCore/commit/6e28ecd22ea5ba8a7a2d0b08217aa68010b1cfc4)
This commit is contained in:
@@ -69,6 +69,13 @@ namespace Game.Movement
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_nextIndex >= _chainSize)
|
||||||
|
{
|
||||||
|
Log.outWarn(LogFilter.Movement, $"SplineChainMovementGenerator::Initialize: couldn't initialize generator, _nextIndex is >= _chainSize ({owner.GetGUID()})");
|
||||||
|
_msToNext = 0;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (_nextFirstWP != 0) // this is a resumed movegen that has to start with a partial spline
|
if (_nextFirstWP != 0) // this is a resumed movegen that has to start with a partial spline
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user