diff --git a/stepmania/src/RageUtil.h b/stepmania/src/RageUtil.h index 33581af9e8..12966a2c28 100644 --- a/stepmania/src/RageUtil.h +++ b/stepmania/src/RageUtil.h @@ -165,14 +165,13 @@ ConvertValueHelper ConvertValue( FROM *pValue ) template static inline void enum_add( T &val, int iAmt ) { - *ConvertValue(&val) += iAmt; + val = static_cast( val + iAmt ); } template static inline T enum_add2( T val, int iAmt ) { - enum_add( val, iAmt ); - return val; + return static_cast( val + iAmt ); }