aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/riven_scripts.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/mohawk/riven_scripts.cpp')
-rw-r--r--engines/mohawk/riven_scripts.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/mohawk/riven_scripts.cpp b/engines/mohawk/riven_scripts.cpp
index c99d8bd294..be21471586 100644
--- a/engines/mohawk/riven_scripts.cpp
+++ b/engines/mohawk/riven_scripts.cpp
@@ -473,7 +473,12 @@ void RivenSimpleCommand::delay(uint16 op, uint16 argc, uint16 *argv) {
// Command 17: call external command
void RivenSimpleCommand::runExternalCommand(uint16 op, uint16 argc, uint16 *argv) {
- _vm->getStack()->runCommand(argc, argv);
+ uint16 commandNameid = argv[0];
+ uint16 argumentCount = argv[1];
+
+ Common::Array<uint16> commandArgs(argv + 2, argumentCount);
+
+ _vm->getStack()->runCommand(commandNameid, commandArgs);
}
// Command 18: transition