diff --git a/stepmania/src/Course.cpp b/stepmania/src/Course.cpp index f0a45dabaa..066de94e32 100644 --- a/stepmania/src/Course.cpp +++ b/stepmania/src/Course.cpp @@ -28,7 +28,7 @@ static const char *CourseTypeNames[] = { XToString( CourseType, NUM_CourseType ); XToLocalizedString( CourseType ); LuaXType2( CourseType, NUM_CourseType, "CourseType_" ); -LuaFunction( CourseTypeToLocalizedString, CourseTypeToLocalizedString((CourseType) IArg(1)) ); +LuaFunction( CourseTypeToLocalizedString, CourseTypeToLocalizedString( Enum::Check( L, 1 ) ) ); static const char *SongSortNames[] = {