diff --git a/src/dat/mcx.c b/src/dat/mcx.c index 875be47..d971146 100644 --- a/src/dat/mcx.c +++ b/src/dat/mcx.c @@ -117,5 +117,5 @@ size_t mcx_calcsize(const u8 *restrict buf) { size_t size = 0; for (uint i = 0; i < CHUNKS; i++) size += *(buf + (i * 4) + 3); - return (size * CHUNKS) + (TABLE * 4); + return (size * SECTOR) + (TABLE * 4); }