From c9045a920cf0d43314a7491eb4861590f3c9c0f0 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 23 Sep 2006 02:25:36 +0000 Subject: [PATCH] use RunExpression --- stepmania/src/ActorUtil.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/ActorUtil.cpp b/stepmania/src/ActorUtil.cpp index 89fa895dac..6abce6b2c4 100644 --- a/stepmania/src/ActorUtil.cpp +++ b/stepmania/src/ActorUtil.cpp @@ -207,9 +207,9 @@ Actor* ActorUtil::LoadFromNode( const RString& sDir, const XNode* pNode, Actor * RString s; if( !pChild->GetAttrValue( "Value", s ) ) Dialog::OK( ssprintf("Param node in '%s' is missing the attribute \"Value\"", sDir.c_str()), "MISSING_ATTRIBUTE" ); - Lua *L = LUA->Get(); - LuaHelpers::RunScript( L, "return " + s, "", 1 ); + Lua *L = LUA->Get(); + LuaHelpers::RunExpression( L, s, sDir ); SetParamFromStack( L, sName, &setOldParams[sName] ); LUA->Release(L); }