From 9dd876559ab116c06d3945fd1258d50b80d914aa Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Wed, 3 Aug 2005 03:26:52 +0000 Subject: [PATCH] allow Lua function types in xml --- stepmania/src/LuaManager.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/stepmania/src/LuaManager.cpp b/stepmania/src/LuaManager.cpp index 00c6dcf599..ff81ace676 100644 --- a/stepmania/src/LuaManager.cpp +++ b/stepmania/src/LuaManager.cpp @@ -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);