aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/lab/lab.h2
-rw-r--r--engines/lab/savegame.cpp3
2 files changed, 3 insertions, 2 deletions
diff --git a/engines/lab/lab.h b/engines/lab/lab.h
index aedf0181ec..3eba78b42e 100644
--- a/engines/lab/lab.h
+++ b/engines/lab/lab.h
@@ -502,7 +502,7 @@ private:
void handleTrialWarning();
};
-WARN_UNUSED_RESULT bool readSaveGameHeader(Common::InSaveFile *in, SaveGameHeader &header, bool skipThumbnail = true);
+WARN_UNUSED_RESULT bool readSaveGameHeader(Common::InSaveFile *in, SaveGameHeader &header, bool skipThumbnail = false);
} // End of namespace Lab
diff --git a/engines/lab/savegame.cpp b/engines/lab/savegame.cpp
index 46ef1486f0..11986dc8c9 100644
--- a/engines/lab/savegame.cpp
+++ b/engines/lab/savegame.cpp
@@ -98,10 +98,11 @@ WARN_UNUSED_RESULT bool readSaveGameHeader(Common::InSaveFile *in, SaveGameHeade
header._descr.setDescription(saveName);
// Get the thumbnail
- Graphics::Surface *thumbnail;
+ Graphics::Surface *thumbnail = nullptr;
if (!Graphics::loadThumbnail(*in, thumbnail, skipThumbnail)) {
return false;
}
+
header._descr.setThumbnail(thumbnail);
uint32 saveDate = in->readUint32BE();