Permalink
Browse files

Merge pull request #10219 from LunaMoo/cwcheatOops

Fix cwcheat import
  • Loading branch information...
hrydgard committed Dec 1, 2017
2 parents 8a58b76 + d5d82d4 commit 6413e6f2a184d2adf8433b9e9c906f9ecb84d3d2
Showing with 2 additions and 2 deletions.
  1. +2 −2 UI/CwCheatScreen.cpp
@@ -229,7 +229,7 @@ UI::EventReturn CwCheatScreen::OnImportCheat(UI::EventParams &params) {
continue;
}
loop:;
} while (fs.good() && line[0] != '_' && line[1] != 'S');
} while (fs.good() && line[0] == '_' && line[1] != 'S');
finished = true;
}
if (finished == true)
@@ -243,7 +243,7 @@ UI::EventReturn CwCheatScreen::OnImportCheat(UI::EventParams &params) {
File::OpenCPPFile(fs, activeCheatFile, std::ios::out | std::ios::app);
auto it = title.begin();
if (title2[0] != '_' && title2[1] != 'S' && it != title.end() && (++it) != title.end()) {
if (title2[0] == '_' && title2[1] != 'S' && it != title.end() && (++it) != title.end()) {
fs << title[0] << "\n" << title[1];
}

0 comments on commit 6413e6f

Please sign in to comment.