aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/fullpipe/stateloader.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/fullpipe/stateloader.cpp b/engines/fullpipe/stateloader.cpp
index cf63df1d96..c49dafc947 100644
--- a/engines/fullpipe/stateloader.cpp
+++ b/engines/fullpipe/stateloader.cpp
@@ -318,12 +318,12 @@ bool CGameVar::addSubVar(CGameVar *subvar) {
var->_nextVarObj = subvar;
subvar->_prevVarObj = var;
- subvar->_parentVarObj = var;
+ subvar->_parentVarObj = this;
return true;
} else {
- var->_subVars = subvar;
- subvar->_parentVarObj = var;
+ _subVars = subvar;
+ subvar->_parentVarObj = this;
return true;
}