diff --git a/src/game/main.c b/src/game/main.c index a185fef9..fa2beab4 100644 --- a/src/game/main.c +++ b/src/game/main.c @@ -139,7 +139,7 @@ void setup_mesg_queues(void) { void alloc_pool(void) { void *start = (void *) SEG_POOL_START; - void *end = (void *) SEG_POOL_END; + void *end = (void *) (SEG_POOL_START + POOL_SIZE); main_pool_init(start, end); gEffectsMemoryPool = mem_pool_init(0x4000, MEMORY_POOL_LEFT);