Skip to content

Commit

Permalink
Fix installing mods by offset.
Browse files Browse the repository at this point in the history
Don't forget to initialize your values kiddos
  • Loading branch information
Genwald committed Jan 21, 2020
1 parent 7e79a25 commit dde9d38
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/mod_installer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit dde9d38

Please sign in to comment.