diff options
author | David Fioramonti | 2018-07-12 19:17:55 -0700 |
---|---|---|
committer | Eugene Sandulenko | 2018-07-21 13:15:14 +0200 |
commit | 45137f34df748be01bbe9e935d1cdb0d26a5d808 (patch) | |
tree | b200bb08fef81baf4f5cea52dfeb908b89387928 | |
parent | 9d88afe6bf077006945e2494f397a593ae70e9eb (diff) | |
download | scummvm-rg350-45137f34df748be01bbe9e935d1cdb0d26a5d808.tar.gz scummvm-rg350-45137f34df748be01bbe9e935d1cdb0d26a5d808.tar.bz2 scummvm-rg350-45137f34df748be01bbe9e935d1cdb0d26a5d808.zip |
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.
-rw-r--r-- | engines/pink/saveload.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/pink/saveload.cpp b/engines/pink/saveload.cpp index 27e8d953db..02bda4f0df 100644 --- a/engines/pink/saveload.cpp +++ b/engines/pink/saveload.cpp @@ -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; |