From 05f8dc3a95e4e3ea902a5b737f43bc48172ed409 Mon Sep 17 00:00:00 2001 From: Andrei Prykhodko Date: Wed, 7 Oct 2020 23:30:15 +0300 Subject: [PATCH] PETKA: fix crash after starting panel 2nd time --- engines/petka/interfaces/panel.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engines/petka/interfaces/panel.cpp b/engines/petka/interfaces/panel.cpp index 2547991935e..35bcdf147e0 100644 --- a/engines/petka/interfaces/panel.cpp +++ b/engines/petka/interfaces/panel.cpp @@ -131,6 +131,7 @@ void InterfacePanel::onLeftButtonDown(Common::Point p) { g_vm->loadPart(1); break; case kLoadButtonIndex: + stop(); g_vm->getQSystem()->_saveLoadInterface->start(kLoadMode); break; case kContinueButtonIndex: @@ -140,6 +141,7 @@ void InterfacePanel::onLeftButtonDown(Common::Point p) { g_system->quit(); break; case kSaveButtonIndex: + stop(); g_vm->getQSystem()->_saveLoadInterface->start(kSaveMode); break; case kSubtitleButtonIndex: