From c5d0f2310ebd9e344d0736d0ea673dfd1616dd1e Mon Sep 17 00:00:00 2001 From: zlago Date: Sun, 26 Jan 2025 19:40:45 +0100 Subject: fix the game crashing when creating a new save --- src/main.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index c5f8359..41c239b 100644 --- a/src/main.c +++ b/src/main.c @@ -416,6 +416,7 @@ int main(int const argc, char *const *const argv) { perror(save_file_name); goto end; } + player_new(&next_entities); player_property(next_entities.player, "x", "40"); player_property(next_entities.player, "y", "64"); game_load_level("untitled"); -- cgit 1.4.1-2-gfad0