Core/MMaps: Fix mobs evading when target is out of MMap meshes

Port From (https://github.com/TrinityCore/TrinityCore/commit/bea0e48531bae904079ea5b9f489a436e58abaed)
This commit is contained in:
hondacrx
2022-01-04 18:49:06 -05:00
parent 673d2fff40
commit e8b154b4e2
@@ -709,7 +709,7 @@ namespace Game.Movement
npolys = FixupCorridor(polys, npolys, 74, visited, nvisited);
if (Detour.dtStatusFailed(_navMeshQuery.getPolyHeight(polys[0], result, ref result[1])))
return Detour.DT_FAILURE;
Log.outDebug(LogFilter.Maps, $"Cannot find height at position X: {result[2]} Y: {result[0]} Z: {result[1]} for ");// {_sourceUnit.GetDebugInfo()}");
result[1] += 0.5f;
Detour.dtVcopy(iterPos, result);