Merged the fix, but without the catch upgrade.
This commit is contained in:
Kawe Mazidjatari 2023-07-15 16:40:12 +02:00
parent ac6becffd8
commit 8468fe011d

View File

@ -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