diff options
author | Simei Yin | 2018-05-31 19:57:45 +0200 |
---|---|---|
committer | Simei Yin | 2018-05-31 23:15:09 +0200 |
commit | 98f764050a67f67c6bfaa4fb4ba685dd6ee6a0fb (patch) | |
tree | a4ff26aa45e0d19c0a9cfacc9df876c002328b56 /engines/sludge/builtin.cpp | |
parent | 56f0821876b20da1c20afde9799bb22829cc537d (diff) | |
download | scummvm-rg350-98f764050a67f67c6bfaa4fb4ba685dd6ee6a0fb.tar.gz scummvm-rg350-98f764050a67f67c6bfaa4fb4ba685dd6ee6a0fb.tar.bz2 scummvm-rg350-98f764050a67f67c6bfaa4fb4ba685dd6ee6a0fb.zip |
SLUDGE: Move copyVariable to struct Variable
Diffstat (limited to 'engines/sludge/builtin.cpp')
-rw-r--r-- | engines/sludge/builtin.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/sludge/builtin.cpp b/engines/sludge/builtin.cpp index e8990144ab..2ee7de3d07 100644 --- a/engines/sludge/builtin.cpp +++ b/engines/sludge/builtin.cpp @@ -443,7 +443,7 @@ builtIn(pickOne) { // Return value while (numParams--) { if (i == numParams) - copyVariable(fun->stack->thisVar, fun->reg); + fun->reg.copyFrom(fun->stack->thisVar); trimStack(fun->stack); } return BR_CONTINUE; @@ -646,7 +646,7 @@ builtIn(popFromStack) { } // Return value - copyVariable(fun->stack->thisVar.varData.theStack->first->thisVar, fun->reg); + fun->reg.copyFrom(fun->stack->thisVar.varData.theStack->first->thisVar); trimStack(fun->stack->thisVar.varData.theStack->first); trimStack(fun->stack); return BR_CONTINUE; @@ -664,7 +664,7 @@ builtIn(peekStart) { } // Return value - copyVariable(fun->stack->thisVar.varData.theStack->first->thisVar, fun->reg); + fun->reg.copyFrom(fun->stack->thisVar.varData.theStack->first->thisVar); trimStack(fun->stack); return BR_CONTINUE; } @@ -681,7 +681,7 @@ builtIn(peekEnd) { } // Return value - copyVariable(fun->stack->thisVar.varData.theStack->last->thisVar, fun->reg); + fun->reg.copyFrom(fun->stack->thisVar.varData.theStack->last->thisVar); trimStack(fun->stack); return BR_CONTINUE; } |