aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2013-08-02 01:37:50 +0300
committerEugene Sandulenko2013-09-06 14:51:09 +0300
commit9232315880633e66f99e874623446664ca262719 (patch)
tree64a6148bcb0bc6055f946a7567daf4fade60e601 /engines
parent633a0fcd86e47b16d77be32a822f3e57120b9796 (diff)
downloadscummvm-rg350-9232315880633e66f99e874623446664ca262719.tar.gz
scummvm-rg350-9232315880633e66f99e874623446664ca262719.tar.bz2
scummvm-rg350-9232315880633e66f99e874623446664ca262719.zip
FULLPIPE: Fix CGameVar::addSubVar()
Diffstat (limited to 'engines')
-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;
}