diff options
author | Mike Buland <eichlan@xagasoft.com> | 2012-02-06 17:20:32 -0700 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2012-02-06 17:20:32 -0700 |
commit | 6a7a6d31870e4542f84fc01eaf777794296a0ebe (patch) | |
tree | ca8e12e50ef03a6dacaa7791fa65b2bbdf7ee92f /src/gamestate.cpp | |
parent | b6a2532da188088964cd6bf54da8c369d1608219 (diff) | |
download | stage-6a7a6d31870e4542f84fc01eaf777794296a0ebe.tar.gz stage-6a7a6d31870e4542f84fc01eaf777794296a0ebe.tar.bz2 stage-6a7a6d31870e4542f84fc01eaf777794296a0ebe.tar.xz stage-6a7a6d31870e4542f84fc01eaf777794296a0ebe.zip |
Another bugfix for function calling.
Diffstat (limited to 'src/gamestate.cpp')
-rw-r--r-- | src/gamestate.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gamestate.cpp b/src/gamestate.cpp index aeaaaed..7b2d228 100644 --- a/src/gamestate.cpp +++ b/src/gamestate.cpp | |||
@@ -520,8 +520,8 @@ void GameState::parse( const AstBranch::NodeList &lCode ) | |||
520 | bEscape = false; | 520 | bEscape = false; |
521 | for( AstBranch::NodeList::const_iterator i = lCode.begin(); i; i++ ) | 521 | for( AstBranch::NodeList::const_iterator i = lCode.begin(); i; i++ ) |
522 | { | 522 | { |
523 | //sio << "Stack: " << lStack << sio.nl; | 523 | // sio << "Stack: " << lStack << sio.nl; |
524 | //sio << "exec: " << (*i)->getType() << sio.nl; | 524 | // sio << "exec: " << (*i)->getType() << sio.nl; |
525 | switch( (*i)->getType() ) | 525 | switch( (*i)->getType() ) |
526 | { | 526 | { |
527 | // tLeaf | 527 | // tLeaf |
@@ -752,6 +752,10 @@ void GameState::parse( const AstBranch::NodeList &lCode ) | |||
752 | pop(); | 752 | pop(); |
753 | break; | 753 | break; |
754 | 754 | ||
755 | case AstNode::tDeref: | ||
756 | push( popDeref() ); | ||
757 | break; | ||
758 | |||
755 | // tLeafLiteral | 759 | // tLeafLiteral |
756 | case AstNode::tVarName: | 760 | case AstNode::tVarName: |
757 | case AstNode::tLiteral: | 761 | case AstNode::tLiteral: |