From 68df2eecfcd8fe4e74e60ab7632539f3d487c5f8 Mon Sep 17 00:00:00 2001 From: veclavtalica Date: Tue, 8 Oct 2024 10:13:07 +0300 Subject: [PATCH] fix an oopsie --- src/twn_loop.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/twn_loop.c b/src/twn_loop.c index 77e2322..ab8336b 100644 --- a/src/twn_loop.c +++ b/src/twn_loop.c @@ -736,10 +736,11 @@ int enter_loop(int argc, char **argv) { if (!PHYSFS_mount(full_path, NULL, true)) { SDL_free(full_path); SDL_asprintf(&full_path, "%sdata.btw", ctx.base_dir); - if (!PHYSFS_mount(full_path, NULL, true)) + if (!PHYSFS_mount(full_path, NULL, true)) { SDL_free(full_path); CRY_PHYSFS("Cannot find data.btw or data directory in root. Please create them or specify with --data-dir parameter."); return EXIT_FAILURE; + } } SDL_free(full_path); }