diff --git a/engines/dialogs.cpp b/engines/dialogs.cpp index e6277bec529..8e42c827584 100644 --- a/engines/dialogs.cpp +++ b/engines/dialogs.cpp @@ -137,9 +137,9 @@ void MainMenuDialog::handleCommand(GUI::CommandSender *sender, uint32 cmd, uint3 } break; case kLauncherCmd: { - Common::Event eventRTL; - eventRTL.type = Common::EVENT_RETURN_TO_LAUNCHER; - g_system->getEventManager()->pushEvent(eventRTL); + Common::Event eventReturnToLauncher; + eventReturnToLauncher.type = Common::EVENT_RETURN_TO_LAUNCHER; + g_system->getEventManager()->pushEvent(eventReturnToLauncher); close(); } break; diff --git a/gui/EventRecorder.cpp b/gui/EventRecorder.cpp index 5a413458589..492b7bc9f4a 100644 --- a/gui/EventRecorder.cpp +++ b/gui/EventRecorder.cpp @@ -641,9 +641,9 @@ bool EventRecorder::switchMode() { saveName = Common::String::format("Save %d", emptySlot + 1); Common::Error status = g_engine->saveGameState(emptySlot, saveName); if (status.getCode() == Common::kNoError) { - Common::Event eventRTL; - eventRTL.type = Common::EVENT_RETURN_TO_LAUNCHER; - g_system->getEventManager()->pushEvent(eventRTL); + Common::Event eventReturnToLauncher; + eventReturnToLauncher.type = Common::EVENT_RETURN_TO_LAUNCHER; + g_system->getEventManager()->pushEvent(eventReturnToLauncher); } } ConfMan.set("record_mode", "", Common::ConfigManager::kTransientDomain); diff --git a/gui/onscreendialog.cpp b/gui/onscreendialog.cpp index c53265da29b..4504521fa23 100644 --- a/gui/onscreendialog.cpp +++ b/gui/onscreendialog.cpp @@ -122,11 +122,11 @@ OnScreenDialog::OnScreenDialog(bool isRecord) : Dialog("OnScreenDialog") { } void OnScreenDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 data) { - Common::Event eventRTL; + Common::Event eventReturnToLauncher; switch (cmd) { case kStopCmd: - eventRTL.type = Common::EVENT_RETURN_TO_LAUNCHER; - g_system->getEventManager()->pushEvent(eventRTL); + eventReturnToLauncher.type = Common::EVENT_RETURN_TO_LAUNCHER; + g_system->getEventManager()->pushEvent(eventReturnToLauncher); close(); break; case kEditCmd: