aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMax Horn2008-08-06 16:03:06 +0000
committerMax Horn2008-08-06 16:03:06 +0000
commit32ad70f60840cc2a6ac79a47dcb4b30b3e9fd7a9 (patch)
treea4d04c85cd28cb79d2967ffc1ab2e139ec65452b /engines
parente7027503f1b0bfbce5f700a9c2e14079105d88d1 (diff)
downloadscummvm-rg350-32ad70f60840cc2a6ac79a47dcb4b30b3e9fd7a9.tar.gz
scummvm-rg350-32ad70f60840cc2a6ac79a47dcb4b30b3e9fd7a9.tar.bz2
scummvm-rg350-32ad70f60840cc2a6ac79a47dcb4b30b3e9fd7a9.zip
Do not query savestates which obviously do not exist (to shut up bogus console warnings)
svn-id: r33664
Diffstat (limited to 'engines')
-rw-r--r--engines/scumm/dialogs.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/scumm/dialogs.cpp b/engines/scumm/dialogs.cpp
index 7c79cbc0ea..f9a8647d0d 100644
--- a/engines/scumm/dialogs.cpp
+++ b/engines/scumm/dialogs.cpp
@@ -365,7 +365,7 @@ void SaveLoadChooser::reflowLayout() {
void SaveLoadChooser::updateInfos(bool redraw) {
int selItem = _list->getSelected();
Graphics::Surface *thumb = 0;
- if (selItem >= 0)
+ if (selItem >= 0 && !_list->getSelectedString().empty())
thumb = _vm->loadThumbnailFromSlot(_saveMode ? selItem + 1 : selItem);
if (thumb) {
@@ -379,7 +379,8 @@ void SaveLoadChooser::updateInfos(bool redraw) {
InfoStuff infos;
memset(&infos, 0, sizeof(InfoStuff));
- if (selItem >= 0 && _vm->loadInfosFromSlot(_saveMode ? selItem + 1 : selItem, &infos)) {
+ if (selItem >= 0 && !_list->getSelectedString().empty()
+ && _vm->loadInfosFromSlot(_saveMode ? selItem + 1 : selItem, &infos)) {
char buffer[32];
snprintf(buffer, 32, "Date: %.2d.%.2d.%.4d",
(infos.date >> 24) & 0xFF, (infos.date >> 16) & 0xFF,