Core/Movement: Fix assertion triggered in SplineChainMovementGenerator

Port From (https://github.com/TrinityCore/TrinityCore/commit/6e28ecd22ea5ba8a7a2d0b08217aa68010b1cfc4)
This commit is contained in:
hondacrx
2021-12-16 12:43:45 -05:00
parent a39fdef7c3
commit 589d845093
@@ -69,6 +69,13 @@ namespace Game.Movement
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
{