PETKA: properly save when saving from dialog
This commit is contained in:
parent
461c76e062
commit
d6a501304d
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue