summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--3de.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/3de.c b/3de.c
index 94dceac..66d5dfa 100644
--- a/3de.c
+++ b/3de.c
@@ -133,7 +133,7 @@ int entrypoint(int argc, const char** argv, Arena* a) {
init_map(map);
while (app->o) {
fps_begin(&f);
- while (f.now >= f.next) {
+ while (f.now >= f.next && app->o) {
app_begin(app);
init_arena(&gui_arena, gui_mem, gui_memory_size);
gui_begin(&g, app, &gui_arena);