From 6a7a6d31870e4542f84fc01eaf777794296a0ebe Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 6 Feb 2012 17:20:32 -0700 Subject: Another bugfix for function calling. --- 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 aeaaaed..7b2d228 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 @@ -752,6 +752,10 @@ void GameState::parse( const AstBranch::NodeList &lCode ) pop(); break; + case AstNode::tDeref: + push( popDeref() ); + break; + // tLeafLiteral case AstNode::tVarName: case AstNode::tLiteral: -- cgit v1.2.3