aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2013-04-17 16:20:20 +0200
committerEinar Johan Trøan Sømåen2013-04-17 16:20:20 +0200
commitfaf688a25262566bd9152b4c03a59ce322547673 (patch)
tree8bf2c88df07ecb3329fe3db41d11b888bb60fcf5
parentad5ef64b86d72f120e60b954afb0ebeb04d34a9a (diff)
downloadscummvm-rg350-faf688a25262566bd9152b4c03a59ce322547673.tar.gz
scummvm-rg350-faf688a25262566bd9152b4c03a59ce322547673.tar.bz2
scummvm-rg350-faf688a25262566bd9152b4c03a59ce322547673.zip
WINTERMUTE: Initialize _savedTimeStamp and _savedPlayTime
-rw-r--r--engines/wintermute/base/base_persistence_manager.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/wintermute/base/base_persistence_manager.cpp b/engines/wintermute/base/base_persistence_manager.cpp
index 84a1c2ec67..318c2c8f1b 100644
--- a/engines/wintermute/base/base_persistence_manager.cpp
+++ b/engines/wintermute/base/base_persistence_manager.cpp
@@ -79,6 +79,16 @@ BasePersistenceManager::BasePersistenceManager(const char *savePrefix, bool dele
_savedVerMajor = _savedVerMinor = _savedVerBuild = 0;
_savedExtMajor = _savedExtMinor = 0;
+ _savedTimestamp.tm_sec = 0;
+ _savedTimestamp.tm_min = 0;
+ _savedTimestamp.tm_hour = 0;
+ _savedTimestamp.tm_mday = 0;
+ _savedTimestamp.tm_mon = 0;
+ _savedTimestamp.tm_year = 0;
+ _savedTimestamp.tm_wday = 0;
+
+ _savedPlayTime = 0;
+
_thumbnailDataSize = 0;
_thumbnailData = nullptr;
if (savePrefix) {