aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/riven_inventory.cpp
diff options
context:
space:
mode:
authorBastien Bouclet2018-07-13 19:31:56 +0200
committerBastien Bouclet2018-07-13 19:44:48 +0200
commitd91ac014195dea06e42daa7351c9a3844ef34aec (patch)
tree8e8c2bd56b169f8f1f1970a48b1b43320954b302 /engines/mohawk/riven_inventory.cpp
parent788574e751f89096ba580306818e5d999db9c016 (diff)
downloadscummvm-rg350-d91ac014195dea06e42daa7351c9a3844ef34aec.tar.gz
scummvm-rg350-d91ac014195dea06e42daa7351c9a3844ef34aec.tar.bz2
scummvm-rg350-d91ac014195dea06e42daa7351c9a3844ef34aec.zip
MOHAWK: RIVEN: Queue opening and closing the main menu as scripts
This way all the other actions are blocked while the card load scripts are executed. Expecially, it's not possible anymore to open the main menu while the scripts for returning from the main menu are still executing. Fixes Trac#10628.
Diffstat (limited to 'engines/mohawk/riven_inventory.cpp')
-rw-r--r--engines/mohawk/riven_inventory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/mohawk/riven_inventory.cpp b/engines/mohawk/riven_inventory.cpp
index b4304eceec..7479080685 100644
--- a/engines/mohawk/riven_inventory.cpp
+++ b/engines/mohawk/riven_inventory.cpp
@@ -167,7 +167,7 @@ void RivenInventory::backFromItemScript() const {
uint32 backCardId = _vm->_vars["returncardid"];
// Return to where we were before entering the book
- RivenCommand *back = new RivenStackChangeCommand(_vm, backStackId, backCardId, true);
+ RivenCommand *back = new RivenStackChangeCommand(_vm, backStackId, backCardId, true, false);
RivenScriptPtr backScript = _vm->_scriptMan->createScriptWithCommand(back);
_vm->_scriptMan->runScript(backScript, true);
}