PETKA: properly save when saving from dialog

This commit is contained in:
Andrei Prykhodko 2022-02-10 22:10:45 +02:00
parent 461c76e062
commit d6a501304d

View file

@ -64,6 +64,12 @@ Common::Error PetkaEngine::saveGameState(int slot, const Common::String &desci,
if (!out)
return Common::kUnknownError;
if (_qsystem->_currInterface == _qsystem->_panelInterface.get() ||
_qsystem->_currInterface == _qsystem->_saveLoadInterface.get())
{
_qsystem->goPrevInterface();
}
out->writeUint32BE(MKTAG('p', 'e', 't', 'k'));
out->writeByte(desci.size());
out->writeString(desci);