From a6afa09161939430a872fda58f2580a2f74d7d08 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 20 Jul 2003 01:09:42 +0000 Subject: fix for bug #758542 svn-id: r9088 --- scumm/scummvm.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scumm/scummvm.cpp b/scumm/scummvm.cpp index 2c690023ac..c99f57c3a2 100644 --- a/scumm/scummvm.cpp +++ b/scumm/scummvm.cpp @@ -1624,13 +1624,13 @@ void Scumm::processKbd() { _videoFinished = true; } else abortCutscene(); - } else if (_lastKeyHit == saveloadkey && _currentRoom != 0) { - if (VAR_SAVELOAD_SCRIPT != 0xFF) + } else if (_lastKeyHit == saveloadkey) { + if (VAR_SAVELOAD_SCRIPT != 0xFF && _currentRoom != 0) runScript(VAR(VAR_SAVELOAD_SCRIPT), 0, 0, 0); saveloadDialog(); // Display NewGui - if (VAR_SAVELOAD_SCRIPT != 0xFF) + if (VAR_SAVELOAD_SCRIPT != 0xFF && _currentRoom != 0) runScript(VAR(VAR_SAVELOAD_SCRIPT2), 0, 0, 0); return; } else if (VAR_TALKSTOP_KEY != 0xFF && _lastKeyHit == VAR(VAR_TALKSTOP_KEY)) { -- cgit v1.2.3