aboutsummaryrefslogtreecommitdiff
path: root/engines/director
diff options
context:
space:
mode:
authorEugene Sandulenko2016-08-18 10:22:56 +0200
committerEugene Sandulenko2016-08-18 20:46:43 +0200
commitcc9979a600bfbc0823c6b103b8ec03b472b2ea1d (patch)
treeaf338171267fe0177b190bcbff599b58317aa3aa /engines/director
parentbcc85ecc87a1e13aadb0c4f844a848971080d78a (diff)
downloadscummvm-rg350-cc9979a600bfbc0823c6b103b8ec03b472b2ea1d.tar.gz
scummvm-rg350-cc9979a600bfbc0823c6b103b8ec03b472b2ea1d.tar.bz2
scummvm-rg350-cc9979a600bfbc0823c6b103b8ec03b472b2ea1d.zip
DIRECTOR: Lingo: Fix subroutine exit
Diffstat (limited to 'engines/director')
-rw-r--r--engines/director/lingo/lingo-code.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/director/lingo/lingo-code.cpp b/engines/director/lingo/lingo-code.cpp
index 28d2ed44cf..a39eb61a05 100644
--- a/engines/director/lingo/lingo-code.cpp
+++ b/engines/director/lingo/lingo-code.cpp
@@ -872,6 +872,7 @@ void Lingo::c_procret() {
debugC(5, kDebugLingoExec, "Popping frame %d", g_lingo->_callstack.size() + 1);
CFrame *fp = g_lingo->_callstack.back();
+ g_lingo->_callstack.pop_back();
g_lingo->_currentScript = fp->retscript;
g_lingo->_pc = fp->retpc;