From d7a49574521fd9c790eb2b6e69bab88fd931e16c Mon Sep 17 00:00:00 2001 From: Nico de Poel Date: Mon, 16 Jan 2023 14:38:27 +0100 Subject: [PATCH] Re-enabled bounds check for primitive buffer. Fixes crashing on larger maps. --- memory.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/memory.c b/memory.c index 55c5da4..aa15432 100644 --- a/memory.c +++ b/memory.c @@ -29,10 +29,8 @@ void mem_prim_reset(int db) void *mem_prim(size_t size) { -#if _DEBUG if (nextpri + size > primbuff_bounds) return NULL; // TODO: report error -#endif void *prim = nextpri; nextpri += size;