diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 1 | ||||
-rw-r--r-- | src/save.c | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index f86ed0b..c10657a 100644 --- a/src/main.c +++ b/src/main.c @@ -410,7 +410,6 @@ int main(int const argc, char *const *const argv) { particle_tex = res_get_texture("particles").data; - player_new(&next_entities); FILE *file = fopen(save_file_name, "rb"); if (file == NULL) { if (errno != ENOENT) { diff --git a/src/save.c b/src/save.c index faeb8d1..83e21de 100644 --- a/src/save.c +++ b/src/save.c @@ -38,6 +38,7 @@ int game_load(FILE *file) { fputs("invalid save format\n", stderr); return 1; } + player_new(&next_entities); player_property(next_entities.player, "x", filedata); filedata += len + 1; len = strnlen(filedata, filesize); |