From c7cc58468b5a5ff483da7fe8c765ccad199f13f1 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Sun, 14 Apr 2024 14:33:09 +0100 Subject: all major features done. program is 90% finished, leaving only the remaining 90% --- server/main.ha | 2 ++ 1 file changed, 2 insertions(+) (limited to 'server/main.ha') diff --git a/server/main.ha b/server/main.ha index 19ecc51..31cb6dc 100644 --- a/server/main.ha +++ b/server/main.ha @@ -258,6 +258,8 @@ fn floor_div(a: i32, b: i32) i32 = { fn unload_distant_chunks(state: *server_state) void = { const n_pics = len(state.pictures); + if (n_pics == 0) return; + let should_unload = alloc([true...], n_pics); defer free(should_unload); -- cgit v1.2.3