PETKA: fix crash after starting panel 2nd time

This commit is contained in:
Andrei Prykhodko 2020-10-07 23:30:15 +03:00
parent 3ada5be76c
commit 05f8dc3a95

View File

@ -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: