allow Lua function types in xml <Param />

This commit is contained in:
Chris Danford
2005-08-03 03:26:52 +00:00
parent a15e03f3b2
commit 9dd876559a
-4
View File
@@ -82,10 +82,6 @@ void LuaManager::SetGlobalFromExpression( const CString &sName, const CString &e
return;
}
/* Don't accept a function as a return value. */
if( lua_isfunction( L, -1 ) )
RageException::Throw( "result is a function; did you forget \"()\"?" );
lua_setglobal( L, sName );
LUA->Release(L);