From 8e66239404f49ace9c811d0bdc9cb6f3fa4f9fda Mon Sep 17 00:00:00 2001 From: LunaMoo Date: Mon, 24 May 2021 22:54:04 +0200 Subject: [PATCH] Fix UI import cheat crash. --- UI/CwCheatScreen.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/UI/CwCheatScreen.cpp b/UI/CwCheatScreen.cpp index fdc0810117..b5fde7d5f6 100644 --- a/UI/CwCheatScreen.cpp +++ b/UI/CwCheatScreen.cpp @@ -211,6 +211,7 @@ UI::EventReturn CwCheatScreen::OnImportCheat(UI::EventParams ¶ms) { if (!in) { WARN_LOG(COMMON, "Unable to open %s\n", cheatFile.c_str()); + return UI::EVENT_SKIPPED; } char linebuf[2048]{};