diff --git a/rwgame/RWGame.cpp b/rwgame/RWGame.cpp index 785443c5..c1be395e 100644 --- a/rwgame/RWGame.cpp +++ b/rwgame/RWGame.cpp @@ -170,7 +170,7 @@ void RWGame::handleCheatInput(char symbol) { cheatInputWindow = cheatInputWindow.substr(1) + symbol; // Helper to check for cheats - auto checkForCheat = [this](std::string cheat, + auto checkForCheat = [this](const std::string& cheat, std::function action) { RW_CHECK(cheatInputWindow.length() >= cheat.length(), "Cheat too long"); size_t offset = cheatInputWindow.length() - cheat.length();