oops, fixup

This commit is contained in:
Glenn Maynard
2006-09-21 23:15:24 +00:00
parent 235729f7b3
commit 9e96b44d55
+1 -3
View File
@@ -140,11 +140,9 @@ void LuaReference::Unregister()
bool LuaReference::SetFromExpression( const RString &sExpression )
{
RString sFullExpression = "return " + sExpression;
if( GetName().empty() )
{
RString sFullExpression = "return " + sExpression;
SetName( sFullExpression );
}
Lua *L = LUA->Get();