aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2018-04-02 07:23:24 -0400
committerPaul Gilbert2018-04-02 07:23:24 -0400
commit9f31bd7349662852301d0dad5d7ba5cc376fd01a (patch)
treebfa43a56ecbd0f317c4e85c600f05163cbd10957
parent77f594693d5325cbb99f9d96edf9e29bd361f838 (diff)
downloadscummvm-rg350-9f31bd7349662852301d0dad5d7ba5cc376fd01a.tar.gz
scummvm-rg350-9f31bd7349662852301d0dad5d7ba5cc376fd01a.tar.bz2
scummvm-rg350-9f31bd7349662852301d0dad5d7ba5cc376fd01a.zip
XEEN: Fix implementation of cmdReturn opcode
-rw-r--r--engines/xeen/scripts.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/xeen/scripts.cpp b/engines/xeen/scripts.cpp
index 0d5a778d6d..7f78f5bf2c 100644
--- a/engines/xeen/scripts.cpp
+++ b/engines/xeen/scripts.cpp
@@ -1037,7 +1037,7 @@ bool Scripts::cmdCallEvent(ParamsIterator &params) {
}
bool Scripts::cmdReturn(ParamsIterator &params) {
- StackEntry &se = _stack.top();
+ StackEntry se = _stack.pop();
_currentPos = se;
_lineNum = se.line;