fix: not moving chunks correctly in mcx_delchunk_range

This commit is contained in:
2025-08-28 10:58:26 +02:00
parent 15942b47f5
commit f1141e0db4

View File

@@ -69,7 +69,8 @@ size_t mcx_delchunk_range(u8 *restrict buf, int start, int end) {
}
// move the remaining chunks down
mvchunks(buf, src, dst, start, end);
if (end < 0x3FF)
mvchunks(buf, src, dst, end, 0x3FF);
return src - dst;
}