diff options
author | D G Turner | 2018-07-31 09:22:26 +0100 |
---|---|---|
committer | D G Turner | 2018-07-31 09:22:26 +0100 |
commit | 2a4fa26d5241f7febbb47e4419e6ca1c3f6925d9 (patch) | |
tree | b78a87aec2a7094bfae6e1945579bb45c7fe4d37 /engines/cruise | |
parent | 388f16d3bc93769426caca0c37c995c568bc169c (diff) | |
download | scummvm-rg350-2a4fa26d5241f7febbb47e4419e6ca1c3f6925d9.tar.gz scummvm-rg350-2a4fa26d5241f7febbb47e4419e6ca1c3f6925d9.tar.bz2 scummvm-rg350-2a4fa26d5241f7febbb47e4419e6ca1c3f6925d9.zip |
CRUISE: Fix Possible Invalid Thumbnail Pointer Access.
Diffstat (limited to 'engines/cruise')
-rw-r--r-- | engines/cruise/saveload.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/cruise/saveload.cpp b/engines/cruise/saveload.cpp index 7aaeb06905..499f2a73eb 100644 --- a/engines/cruise/saveload.cpp +++ b/engines/cruise/saveload.cpp @@ -61,6 +61,7 @@ WARN_UNUSED_RESULT bool readSavegameHeader(Common::InSaveFile *in, CruiseSavegam while ((ch = (char)in->readByte()) != '\0') header.saveName += ch; // Get the thumbnail + header.thumbnail = nullptr; if (!Graphics::loadThumbnail(*in, header.thumbnail, skipThumbnail)) { return false; } |