diff options
Diffstat (limited to 'engines/sludge/variable.cpp')
-rw-r--r-- | engines/sludge/variable.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/sludge/variable.cpp b/engines/sludge/variable.cpp index 9b72185cb8..5da52483e6 100644 --- a/engines/sludge/variable.cpp +++ b/engines/sludge/variable.cpp @@ -492,10 +492,8 @@ int deleteVarFromStack(const Variable &va, VariableStack *&thisStack, bool allOf } // Would be a LOT better just to keep this up to date in the above function... ah well -VariableStack *stackFindLast(VariableStack *hunt) { - if (hunt == NULL) - return NULL; - +VariableStack *VariableStack::stackFindLast() { + VariableStack *hunt = this; while (hunt->next) hunt = hunt->next; |