Skip to content

Commit

Permalink
fix replays never being allowed to delete decompressed inputdata
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Jan 9, 2023
1 parent 7572298 commit a178233
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Etterna/Models/HighScore/Replay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,7 @@ Replay::LoadInputData(const std::string& replayDir) -> bool
"Bad input data header detected: {} - Header: {}",
path_z.c_str(),
line);
inputStream.close();
deleteDecompressedData();
return false;
}
Expand All @@ -667,6 +668,7 @@ Replay::LoadInputData(const std::string& replayDir) -> bool
path_z.c_str(),
INPUT_DATA_VERSION,
std::stoi(tokens[7]));
inputStream.close();
deleteDecompressedData();
return false;
}
Expand Down Expand Up @@ -734,6 +736,7 @@ Replay::LoadInputData(const std::string& replayDir) -> bool
GetScoreKey().c_str(),
tokens.size(),
line);
inputStream.close();
deleteDecompressedData();
return false;
}
Expand Down

0 comments on commit a178233

Please sign in to comment.