From 689637ca5a4be0e9cad5e40d08e9d6ede7283ddf Mon Sep 17 00:00:00 2001 From: LunaMoo Date: Thu, 30 Nov 2017 06:14:36 +0100 Subject: [PATCH] Oops;p, I always mess this up. --- UI/CwCheatScreen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/CwCheatScreen.cpp b/UI/CwCheatScreen.cpp index 976477e0b3..3911b28353 100644 --- a/UI/CwCheatScreen.cpp +++ b/UI/CwCheatScreen.cpp @@ -190,7 +190,7 @@ UI::EventReturn CwCheatScreen::OnImportCheat(UI::EventParams ¶ms) { std::vector newList; std::string cheatFile = GetSysDirectory(DIRECTORY_CHEATS) + "cheat.db"; - std::string gameID = StringFromFormat("_S %s-%s", gameTitle.substr(0, 4), gameTitle.substr(4)); + std::string gameID = StringFromFormat("_S %s-%s", gameTitle.substr(0, 4).c_str(), gameTitle.substr(4).c_str()); std::fstream fs; File::OpenCPPFile(fs, cheatFile, std::ios::in);