diff options
author | Max Horn | 2008-08-04 11:46:52 +0000 |
---|---|---|
committer | Max Horn | 2008-08-04 11:46:52 +0000 |
commit | 73cbcd33e0b8ffc9a089aa7d8dbf9e5b2c25d6de (patch) | |
tree | d7ddd4455a4f87fce050b29d7629988af8ec732f /engines/scumm | |
parent | 5f4c9f913f60d1098cbe527a9a4acabd39c5c23b (diff) | |
download | scummvm-rg350-73cbcd33e0b8ffc9a089aa7d8dbf9e5b2c25d6de.tar.gz scummvm-rg350-73cbcd33e0b8ffc9a089aa7d8dbf9e5b2c25d6de.tar.bz2 scummvm-rg350-73cbcd33e0b8ffc9a089aa7d8dbf9e5b2c25d6de.zip |
SCUMM: Only try to load savefile metadata from slots >= 0
svn-id: r33607
Diffstat (limited to 'engines/scumm')
-rw-r--r-- | engines/scumm/saveload.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/scumm/saveload.cpp b/engines/scumm/saveload.cpp index 53d0685cbb..54dfca9eea 100644 --- a/engines/scumm/saveload.cpp +++ b/engines/scumm/saveload.cpp @@ -479,6 +479,9 @@ Graphics::Surface *ScummEngine::loadThumbnailFromSlot(int slot) { Common::SeekableReadStream *in; SaveGameHeader hdr; + if (slot < 0) + return 0; + makeSavegameName(filename, slot, false); if (!(in = _saveFileMan->openForLoading(filename))) { return 0; @@ -507,6 +510,9 @@ bool ScummEngine::loadInfosFromSlot(int slot, InfoStuff *stuff) { Common::SeekableReadStream *in; SaveGameHeader hdr; + if (slot < 0) + return 0; + makeSavegameName(filename, slot, false); if (!(in = _saveFileMan->openForLoading(filename))) { return false; |