From 3afa514e11dc16e3a166b39ad411465abd971d8a Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 16 Jan 2012 22:32:56 -0700 Subject: Lists (arrays) are now properly inedxable. --- src/gamestate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gamestate.cpp') diff --git a/src/gamestate.cpp b/src/gamestate.cpp index 285c151..7777b1f 100644 --- a/src/gamestate.cpp +++ b/src/gamestate.cpp @@ -620,8 +620,8 @@ void GameState::parse( const AstBranch::NodeList &lCode ) { throw Bu::ExceptionBase("You cannot use key:value pairs as iterators in a for each loop iterating over a list."); } - const Variable::VariableList &rList = vIn.getList(); - for( Variable::VariableList::const_iterator i = + const Variable::VariableArray &rList = vIn.getList(); + for( Variable::VariableArray::const_iterator i = rList.begin(); i; i++ ) { setVariable( vrValue.sName, *i, vrValue.sid ); -- cgit v1.2.3