diff options
author | Simei Yin | 2018-05-31 23:09:15 +0200 |
---|---|---|
committer | Simei Yin | 2018-05-31 23:15:09 +0200 |
commit | fa72209845740352e6f575f5afc1dd0da9d6a502 (patch) | |
tree | d0567308eace21f475d3160dfc15bd47bfdaba45 /engines/sludge/builtin.cpp | |
parent | 80478ee4704ea09c16c5728c957ea0096b923d05 (diff) | |
download | scummvm-rg350-fa72209845740352e6f575f5afc1dd0da9d6a502.tar.gz scummvm-rg350-fa72209845740352e6f575f5afc1dd0da9d6a502.tar.bz2 scummvm-rg350-fa72209845740352e6f575f5afc1dd0da9d6a502.zip |
SLUDGE: Move stack size getter to struct StackHandler
Diffstat (limited to 'engines/sludge/builtin.cpp')
-rw-r--r-- | engines/sludge/builtin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sludge/builtin.cpp b/engines/sludge/builtin.cpp index c7b66d6dc6..6e4a953cd4 100644 --- a/engines/sludge/builtin.cpp +++ b/engines/sludge/builtin.cpp @@ -527,7 +527,7 @@ builtIn(stackSize) { switch (fun->stack->thisVar.varType) { case SVT_STACK: // Return value - fun->reg.setVariable(SVT_INT, stackSize(fun->stack->thisVar.varData.theStack)); + fun->reg.setVariable(SVT_INT, fun->stack->thisVar.varData.theStack->getStackSize()); trimStack(fun->stack); return BR_CONTINUE; |