diff options
author | Torbjörn Andersson | 2013-07-21 10:02:02 +0200 |
---|---|---|
committer | Torbjörn Andersson | 2013-07-21 10:02:02 +0200 |
commit | 1f9f08c93583fe397ba2dabc5d8f6deaf9f5fb40 (patch) | |
tree | f36531ba8860fe06c327c40dfb94e35d77ba459c | |
parent | bb0850101c005edfdea660241c67c21512ea60df (diff) | |
download | scummvm-rg350-1f9f08c93583fe397ba2dabc5d8f6deaf9f5fb40.tar.gz scummvm-rg350-1f9f08c93583fe397ba2dabc5d8f6deaf9f5fb40.tar.bz2 scummvm-rg350-1f9f08c93583fe397ba2dabc5d8f6deaf9f5fb40.zip |
SCUMM: Fix test before running VAR_SAVELOAD_SCRIPT2 (CID 1004135)
This doesn't really make any difference because either both
VAR_SAVELOAD_SCRIPT and VAR_SAVELOAD_SCRIPT2 exist, or neither
does. But it feels more correct this way.
-rw-r--r-- | engines/scumm/input.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/scumm/input.cpp b/engines/scumm/input.cpp index ee2de49475..d1786dfb60 100644 --- a/engines/scumm/input.cpp +++ b/engines/scumm/input.cpp @@ -535,7 +535,7 @@ void ScummEngine::processKeyboard(Common::KeyState lastKeyHit) { openMainMenuDialog(); // Display global main menu - if (VAR_SAVELOAD_SCRIPT != 0xFF && _currentRoom != 0) + if (VAR_SAVELOAD_SCRIPT2 != 0xFF && _currentRoom != 0) runScript(VAR(VAR_SAVELOAD_SCRIPT2), 0, 0, 0); } else if (restartKeyEnabled && (lastKeyHit.keycode == Common::KEYCODE_F8 && lastKeyHit.hasFlags(0))) { |