aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/mohawk/riven_scripts.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/mohawk/riven_scripts.cpp b/engines/mohawk/riven_scripts.cpp
index 9cb6a04b1b..c9b9780a11 100644
--- a/engines/mohawk/riven_scripts.cpp
+++ b/engines/mohawk/riven_scripts.cpp
@@ -681,6 +681,9 @@ Common::String RivenSimpleCommand::describe() const {
} else if (_type == kRivenCommandIncrementVariable) { // Use the variable name
Common::String varName = _vm->getStack()->getName(kVariableNames, _arguments[0]);
desc = Common::String::format("%s += %d", varName.c_str(), _arguments[1]);
+ } else if (_type == kRivenCommandSetVariable) { // Use the variable name
+ Common::String varName = _vm->getStack()->getName(kVariableNames, _arguments[0]);
+ desc = Common::String::format("%s = %d", varName.c_str(), _arguments[1]);
} else {
desc = Common::String::format("%s(", _opcodes[_type].desc);
for (uint16 j = 0; j < _arguments.size(); j++) {