fix semantics in XNode compiling

This commit is contained in:
Devin J. Pohly
2013-09-24 14:24:11 -04:00
parent 4f0dc3e832
commit 9f4d91418f
+4 -3
View File
@@ -584,13 +584,14 @@ namespace
} }
else if( sExpression.size() > 0 && sExpression[0] == '@' ) else if( sExpression.size() > 0 && sExpression[0] == '@' )
{ {
// This is a raw string. // Lua expression
sExpression.erase( 0, 1 ); sExpression.erase( 0, 1 );
LuaHelpers::Push( L, sExpression ); LuaHelpers::RunExpression( L, sExpression, sFile );
} }
else else
{ {
LuaHelpers::RunExpression( L, sExpression, sFile ); // This is a raw string.
LuaHelpers::Push( L, sExpression );
} }
XNodeLuaValue *pRet = new XNodeLuaValue; XNodeLuaValue *pRet = new XNodeLuaValue;