From 9f15876d876aca08a807e27f6be6c2e5b740bf46 Mon Sep 17 00:00:00 2001 From: Allen Webster Date: Fri, 5 Apr 2019 14:22:11 -0700 Subject: [PATCH] Initialize custom arena sooner --- 4ed.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/4ed.cpp b/4ed.cpp index 8b399323..113a57cc 100644 --- a/4ed.cpp +++ b/4ed.cpp @@ -819,6 +819,7 @@ App_Init_Sig(app_init){ models->keep_playing = true; app_links_init(system, &models->app_links, memory->user_memory, memory->user_memory_size); + models->custom_layer_arena = make_arena(&models->app_links); models->config_api = api; models->app_links.cmd_context = models; @@ -944,7 +945,6 @@ App_Init_Sig(app_init){ models->user_up_key = key_up; models->user_down_key = key_down; models->period_wakeup_timer = system->wake_up_timer_create(); - models->custom_layer_arena = make_arena(&models->app_links); } App_Step_Sig(app_step){