143b96d5fab2f743476a67ae1ac1aa5776eab9dc
metric is nil, instead of EnumType_INVALID. This happened because ThemeMetric was setting the value to its default, eg. EnumType(), when LuaHelpers::FromStack returned false. This behavior doesn't make sense in the general case, since EnumType() results in an arbitrary value (the first one) rather than Invalid. Every FromStack function sets a reasonable default on invalid data, anyway, and only RageColor and enums can return false in any case. This fixes CustomDifficulty when CourseType = nil.
Description
Languages
C++
85.7%
Lua
4.3%
C
4.3%
Rich Text Format
2.3%
CMake
1.1%
Other
2%