From 8468fe011d0d52cd9e6fcb8be6693db88f27573d Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Sat, 15 Jul 2023 16:40:12 +0200 Subject: [PATCH] Merge recastnavigation/recastnavigation#645 Merged the fix, but without the catch upgrade. --- .../thirdparty/recast/DetourCrowd/Source/DetourPathCorridor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r5dev/thirdparty/recast/DetourCrowd/Source/DetourPathCorridor.cpp b/r5dev/thirdparty/recast/DetourCrowd/Source/DetourPathCorridor.cpp index b4860bfa..77e4a251 100644 --- a/r5dev/thirdparty/recast/DetourCrowd/Source/DetourPathCorridor.cpp +++ b/r5dev/thirdparty/recast/DetourCrowd/Source/DetourPathCorridor.cpp @@ -59,7 +59,7 @@ int dtMergeCorridorStartMoved(dtPolyRef* path, const int npath, const int maxPat int size = dtMax(0, npath-orig); if (req+size > maxPath) size = maxPath-req; - if (size) + if (size > 0) memmove(path+req, path+orig, size*sizeof(dtPolyRef)); // Store visited