summaryrefslogtreecommitdiff
path: root/src/gamestate.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-02-06 12:22:27 -0700
committerMike Buland <eichlan@xagasoft.com>2012-02-06 12:22:27 -0700
commit9de9d4e733ce872806c569334af4c9ace01db203 (patch)
treecd401af5f0e158807238d6f9215f16a2c202b3dc /src/gamestate.cpp
parent315dd7104f02a278b9ade41345060ed5f6825fbb (diff)
downloadstage-9de9d4e733ce872806c569334af4c9ace01db203.tar.gz
stage-9de9d4e733ce872806c569334af4c9ace01db203.tar.bz2
stage-9de9d4e733ce872806c569334af4c9ace01db203.tar.xz
stage-9de9d4e733ce872806c569334af4c9ace01db203.zip
Important bugfix in stack code. Thanks david!0.04
Diffstat (limited to 'src/gamestate.cpp')
-rw-r--r--src/gamestate.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gamestate.cpp b/src/gamestate.cpp
index 0a82b99..aeaaaed 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
@@ -748,6 +748,10 @@ void GameState::parse( const AstBranch::NodeList &lCode )
748 } 748 }
749 break; 749 break;
750 750
751 case AstNode::tPop:
752 pop();
753 break;
754
751 // tLeafLiteral 755 // tLeafLiteral
752 case AstNode::tVarName: 756 case AstNode::tVarName:
753 case AstNode::tLiteral: 757 case AstNode::tLiteral: