1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Fix broken assert in decode_chunk_repeat

This commit is contained in:
Michał Janiszewski
2017-08-03 08:41:08 +02:00
parent 2934a10d58
commit cc24978ea5

View File

@@ -288,7 +288,7 @@ static size_t decode_chunk_repeat(uint8 *buffer, size_t length, size_t dstLength
count = (src[i] & 7) + 1;
copyOffset = dst + (sint32)(src[i] >> 3) - 32;
assert(dst + count < buffer + dstLength);
assert(copyOffset + count < src + length);
assert(copyOffset + count < buffer + dstLength);
memcpy(dst, copyOffset, count);
dst = (uint8*)((uintptr_t)dst + count);
}