diff --git a/stepmania/src/Background.cpp b/stepmania/src/Background.cpp index af03e56a29..16767a68b4 100644 --- a/stepmania/src/Background.cpp +++ b/stepmania/src/Background.cpp @@ -202,7 +202,7 @@ CString Background::CreateRandomBGA() switch( PREFSMAN->m_iBackgroundMode ) { default: - FAIL_M( ssprintf("Invalid BackgroundMode: %i", PREFSMAN->m_iBackgroundMode) ); + FAIL_M( ssprintf("Invalid BackgroundMode: %d", PREFSMAN->m_iBackgroundMode.GetValue()) ); break; case PrefsManager::BGMODE_ANIMATIONS: diff --git a/stepmania/src/Preference.h b/stepmania/src/Preference.h index 5806299be4..98b03bd024 100644 --- a/stepmania/src/Preference.h +++ b/stepmania/src/Preference.h @@ -70,6 +70,11 @@ public: { return m_currentValue; } + + T GetValue() const + { + return m_currentValue; + } void operator=( const T& other ) {