diff options
author | Mike Buland <eichlan@xagasoft.com> | 2012-01-16 22:32:56 -0700 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2012-01-16 22:32:56 -0700 |
commit | 3afa514e11dc16e3a166b39ad411465abd971d8a (patch) | |
tree | 3fc9a9b62682c2905909e749f461034634d78903 /src/gamestate.cpp | |
parent | 92f50ee62101b67e768b75c9111af3d0258c6ddd (diff) | |
download | stage-0.02.tar.gz stage-0.02.tar.bz2 stage-0.02.tar.xz stage-0.02.zip |
Lists (arrays) are now properly inedxable.0.02
Diffstat (limited to 'src/gamestate.cpp')
-rw-r--r-- | src/gamestate.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 ) | |||
620 | { | 620 | { |
621 | throw Bu::ExceptionBase("You cannot use key:value pairs as iterators in a for each loop iterating over a list."); | 621 | throw Bu::ExceptionBase("You cannot use key:value pairs as iterators in a for each loop iterating over a list."); |
622 | } | 622 | } |
623 | const Variable::VariableList &rList = vIn.getList(); | 623 | const Variable::VariableArray &rList = vIn.getList(); |
624 | for( Variable::VariableList::const_iterator i = | 624 | for( Variable::VariableArray::const_iterator i = |
625 | rList.begin(); i; i++ ) | 625 | rList.begin(); i; i++ ) |
626 | { | 626 | { |
627 | setVariable( vrValue.sName, *i, vrValue.sid ); | 627 | setVariable( vrValue.sName, *i, vrValue.sid ); |