diff --git a/stepmania/src/Preference.cpp b/stepmania/src/Preference.cpp index 2a8aa78823..1f6872c6cf 100644 --- a/stepmania/src/Preference.cpp +++ b/stepmania/src/Preference.cpp @@ -43,19 +43,19 @@ void IPreference::SetFromStack( lua_State *L ) } #define READFROM_AND_WRITETO( type, cast ) \ - void Preference::FromString( const CString &s ) \ + template<> void Preference::FromString( const CString &s ) \ { \ ::FromString( s, (cast)m_currentValue ); \ } \ - CString Preference::ToString() const \ + template<> CString Preference::ToString() const \ { \ return ::ToString( (cast)m_currentValue ); \ } \ - void Preference::PushValue( lua_State *L ) const \ + template<> void Preference::PushValue( lua_State *L ) const \ { \ LuaHelpers::PushStack( (cast)m_currentValue, L ); \ } \ - void Preference::SetFromStack( lua_State *L ) \ + template<> void Preference::SetFromStack( lua_State *L ) \ { \ LuaHelpers::PopStack( (cast)m_currentValue, L ); \ }