diff --git a/src/saveload/saveload.cpp b/src/saveload/saveload.cpp index 3424f14695..7c2f70aed1 100644 --- a/src/saveload/saveload.cpp +++ b/src/saveload/saveload.cpp @@ -153,7 +153,7 @@ void MemoryDumper::AllocateBuffer() return; } this->FinaliseBlock(); - this->buf = CallocT(MEMORY_CHUNK_SIZE); + this->buf = MallocT(MEMORY_CHUNK_SIZE); this->blocks.emplace_back(this->buf); this->bufe = this->buf + MEMORY_CHUNK_SIZE; }