Fix adding extra new line on checkbox change

This commit is contained in:
iota97 2021-01-06 10:26:44 +01:00
parent 20d161f4a3
commit 0e122f13fa

View file

@ -328,8 +328,10 @@ bool CwCheatScreen::RebuildCheatFile(int index) {
return false;
}
for (const auto &line : lines) {
fs << line << '\n';
for (int i = 0; i < lines.size(); ++i) {
fs << lines[i];
if (i != lines.size()-1)
fs << '\n';
}
fs.close();