diff --git a/stepmania/src/ActorCommands.cpp b/stepmania/src/ActorCommands.cpp index 26aeb77945..083d1adb9c 100644 --- a/stepmania/src/ActorCommands.cpp +++ b/stepmania/src/ActorCommands.cpp @@ -7,13 +7,11 @@ #include "LuaManager.h" #include "LuaBinding.h" -#define MAX_SIMULTANEOUS_LUA_FUNCTIONS 10000 - static CString GetNextFunctionName() { static int id = 0; - id = (id+1) % MAX_SIMULTANEOUS_LUA_FUNCTIONS; - return ssprintf("F%d",id); + ++id; + return ssprintf( "F%08x",id ); } ActorCommands::ActorCommands( const Commands& cmds )