From dde9d38848e411c34f8fe5d461ba2bbab725c06d Mon Sep 17 00:00:00 2001 From: Genwald Date: Tue, 21 Jan 2020 01:32:20 -0800 Subject: [PATCH] Fix installing mods by offset. Don't forget to initialize your values kiddos --- source/mod_installer.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/mod_installer.h b/source/mod_installer.h index d1b50ae..b71d682 100644 --- a/source/mod_installer.h +++ b/source/mod_installer.h @@ -369,9 +369,9 @@ void load_mods(FILE* f_arc) { int enumerate_mod_files(std::string mod_dir) { std::error_code ec; - s64 offset; - u32 compSize, decompSize; - bool regional; + s64 offset = 0; + u32 compSize = 0, decompSize = 0; + bool regional = false; std::filesystem::path modpath; auto fsit = std::filesystem::recursive_directory_iterator(std::filesystem::path(mod_dir), ec); if(!ec) {