PINK: Set engine playtime to playtime in saved game

Before the playtime was starting over when ScummVM was closed and
reopened instead of starting off with the playtime in the saved game.
This commit is contained in:
David Fioramonti 2018-07-12 19:17:55 -07:00 committed by Eugene Sandulenko
parent 9d88afe6bf
commit 45137f34df

View file

@ -41,6 +41,7 @@ Common::Error PinkEngine::loadGameState(int slot) {
_nextModule = archive.readString();
_nextPage = archive.readString();
initModule(archive.readString(), "", &archive);
setTotalPlayTime(desc.getPlayTimeMSecs());
delete in;
return Common::kNoError;