diff options
author | Simei Yin | 2018-05-30 19:57:32 +0200 |
---|---|---|
committer | Simei Yin | 2018-05-31 23:15:09 +0200 |
commit | 04444b70f97c40fe3893e80d73042b4f11dbfa46 (patch) | |
tree | 7a9c5b72152b9170cde1df6d50e4b1fdac5d1af1 /engines/sludge/builtin.cpp | |
parent | 6004cd319d3c865821bc2be29647222c957ed517 (diff) | |
download | scummvm-rg350-04444b70f97c40fe3893e80d73042b4f11dbfa46.tar.gz scummvm-rg350-04444b70f97c40fe3893e80d73042b4f11dbfa46.tar.bz2 scummvm-rg350-04444b70f97c40fe3893e80d73042b4f11dbfa46.zip |
SLUDGE: Move unlinkVar into 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 0d1d940259..0ebcea1001 100644 --- a/engines/sludge/builtin.cpp +++ b/engines/sludge/builtin.cpp @@ -205,7 +205,7 @@ builtIn(getMatchingFiles) { UNUSEDALL Common::String newText = getTextFromAnyVar(fun->stack->thisVar); trimStack(fun->stack); - unlinkVar(fun->reg); + fun->reg.unlinkVar(); // Return value fun->reg.varType = SVT_STACK; @@ -498,7 +498,7 @@ builtIn(stringLength) { builtIn(newStack) { UNUSEDALL - unlinkVar(fun->reg); + fun->reg.unlinkVar(); // Return value fun->reg.varType = SVT_STACK; @@ -2236,7 +2236,7 @@ builtIn(loadCustomData) { return BR_ERROR; trimStack(fun->stack); - unlinkVar(fun->reg); + fun->reg.unlinkVar(); fun->reg.varType = SVT_STACK; fun->reg.varData.theStack = new StackHandler; if (!checkNew(fun->reg.varData.theStack)) @@ -2311,7 +2311,7 @@ builtIn(getPixelColour) { return BR_ERROR; trimStack(fun->stack); - unlinkVar(fun->reg); + fun->reg.unlinkVar(); fun->reg.varType = SVT_STACK; fun->reg.varData.theStack = new StackHandler; if (!checkNew(fun->reg.varData.theStack)) |