From 9de9d4e733ce872806c569334af4c9ace01db203 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 6 Feb 2012 12:22:27 -0700 Subject: Important bugfix in stack code. Thanks david! --- src/gamestate.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/gamestate.cpp') 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 ) bEscape = false; for( AstBranch::NodeList::const_iterator i = lCode.begin(); i; i++ ) { -// sio << "Stack: " << lStack << sio.nl; -// sio << "exec: " << (*i)->getType() << sio.nl; + //sio << "Stack: " << lStack << sio.nl; + //sio << "exec: " << (*i)->getType() << sio.nl; switch( (*i)->getType() ) { // tLeaf @@ -748,6 +748,10 @@ void GameState::parse( const AstBranch::NodeList &lCode ) } break; + case AstNode::tPop: + pop(); + break; + // tLeafLiteral case AstNode::tVarName: case AstNode::tLiteral: -- cgit v1.2.3