summaryrefslogtreecommitdiff
path: root/src/gamebuilder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gamebuilder.cpp')
-rw-r--r--src/gamebuilder.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gamebuilder.cpp b/src/gamebuilder.cpp
index d1b4430..87389ff 100644
--- a/src/gamebuilder.cpp
+++ b/src/gamebuilder.cpp
@@ -61,7 +61,7 @@ void GameBuilder::endFunctionParams()
61 61
62 for( Bu::StringList::iterator i = lRev.begin(); i; i++ ) 62 for( Bu::StringList::iterator i = lRev.begin(); i; i++ )
63 { 63 {
64 addVarRef( *i ); 64 addVarRef( *i, sidLocal );
65 addNode( AstNode::tSwap ); 65 addNode( AstNode::tSwap );
66 addNode( AstNode::tStore ); 66 addNode( AstNode::tStore );
67 } 67 }
@@ -128,11 +128,11 @@ void GameBuilder::addLiteral( const Variable &v )
128 } 128 }
129} 129}
130 130
131void GameBuilder::addVarRef( const Bu::String &sName ) 131void GameBuilder::addVarRef( const Bu::String &sName, ScopeId sid )
132{ 132{
133 if( pCurNode ) 133 if( pCurNode )
134 { 134 {
135 pCurNode->addNode( new AstLeafLiteral( AstNode::tVarName, Variable::newVariableName( sName ) ) ); 135 pCurNode->addNode( new AstLeafLiteral( AstNode::tVarName, Variable::newVariableName( sName, sid ) ) );
136 } 136 }
137} 137}
138 138