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); }