aboutsummaryrefslogtreecommitdiff
path: root/editor/editor.c
diff options
context:
space:
mode:
authoriamcheeseman <[email protected]>2026-05-29 22:28:43 -0400
committeriamcheeseman <[email protected]>2026-05-29 22:28:43 -0400
commit648504907c9f62adc72628ae73a8c668ec1276c8 (patch)
treed95ba176f4677581e2b3971e8cea4179ba908023 /editor/editor.c
parent840b5c151fcd207e904fb2a6d3bb3fd658ef6209 (diff)
Generic arena allocator
Also replaces the temp allocator behind the scenes
Diffstat (limited to 'editor/editor.c')
-rw-r--r--editor/editor.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/editor.c b/editor/editor.c
index 53d24a3..efbee8b 100644
--- a/editor/editor.c
+++ b/editor/editor.c
@@ -78,10 +78,10 @@ int editor_main(void)
while (ty_is_game_running()) {
int ticks = ty_tick();
- for (int i = 0; i < ticks; i++)
+ for (int i = 0; i < ticks; i++) {
tick();
-
- ty_free_temp_allocs();
+ ty_clear_temp_allocs();
+ }
}
for (int i = 0; i < CHAR_MAX; i++) {