From d5d82d4577f9c92db2fc673035b78a55a2349d9a Mon Sep 17 00:00:00 2001 From: LunaMoo Date: Fri, 1 Dec 2017 11:22:12 +0100 Subject: [PATCH] Oops:] --- UI/CwCheatScreen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UI/CwCheatScreen.cpp b/UI/CwCheatScreen.cpp index 3911b28353..da39f104e6 100644 --- a/UI/CwCheatScreen.cpp +++ b/UI/CwCheatScreen.cpp @@ -229,7 +229,7 @@ UI::EventReturn CwCheatScreen::OnImportCheat(UI::EventParams ¶ms) { 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 ¶ms) { 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]; }