Files
itgmania212121/stepmania
Glenn Maynard 143b96d5fa Fix ThemeMetric<EnumType> gives the first value of the enum when the theme
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.
2009-11-14 00:57:27 +00:00
..
2007-10-24 15:55:02 +00:00
2009-11-04 02:32:19 +00:00
2009-11-04 02:32:49 +00:00
2009-03-25 14:32:50 +00:00
2009-04-07 22:35:45 +00:00
2009-05-09 16:38:13 +00:00
2008-02-08 07:55:15 +00:00
2009-04-07 03:04:37 +00:00