From 682eb87af6788cf576691ecc938da9dbc48802cf Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 14 Aug 2013 09:30:30 +0300 Subject: FULLPIPE: Implement BehaviorInfo::initObjectBehavior() --- engines/fullpipe/stateloader.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'engines/fullpipe/stateloader.cpp') diff --git a/engines/fullpipe/stateloader.cpp b/engines/fullpipe/stateloader.cpp index 3cc4d0046f..6d6185e58c 100644 --- a/engines/fullpipe/stateloader.cpp +++ b/engines/fullpipe/stateloader.cpp @@ -300,6 +300,19 @@ int CGameVar::getSubVarsCount() { return res; } +CGameVar *CGameVar::getSubVarByIndex(int idx) { + CGameVar *sub = _subVars; + + while (idx--) { + sub = sub->_nextVarObj; + + if (!sub) + return 0; + } + + return sub; +} + Sc2::Sc2() { _sceneId = 0; _field_2 = 0; -- cgit v1.2.3