summary refs log tree commit diff
path: root/src/main.c
diff options
context:
space:
mode:
authorzlago2025-01-26 19:40:45 +0100
committerzlago2025-01-26 19:40:45 +0100
commitc5d0f2310ebd9e344d0736d0ea673dfd1616dd1e (patch)
tree4819278a264f074022fe01b2515eb5534ec7d1d9 /src/main.c
parentc7d6efa3cdc39251d29450d2efa37da89cb8099a (diff)
fix the game crashing when creating a new save
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c1
1 files changed, 1 insertions, 0 deletions
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");