Push the string for StepsType onto Lua instead of the integer.
This fixes a bug where opening the course editor and pressing down immediately CTDs. There is still a bug where sometimes a "random" stepchart has an uninitialized StepsType. This can be reliably triggered by going to the Course Editor, creating a new course, and exiting without changing the course any. It will have one random song with an uninitialized StepsType, causing a CTD.
This commit is contained in:
@@ -192,7 +192,7 @@ class LunaTrail: public Luna<Trail>
|
||||
{
|
||||
public:
|
||||
static int GetDifficulty( T* p, lua_State *L ) { LuaHelpers::Push(L, p->m_CourseDifficulty ); return 1; }
|
||||
static int GetStepsType( T* p, lua_State *L ) { lua_pushnumber(L, p->m_StepsType ); return 1; }
|
||||
static int GetStepsType( T* p, lua_State *L ) { LuaHelpers::Push(L, p->m_StepsType ); return 1; }
|
||||
static int GetRadarValues( T* p, lua_State *L )
|
||||
{
|
||||
RadarValues &rv = const_cast<RadarValues &>(p->GetRadarValues());
|
||||
|
||||
Reference in New Issue
Block a user