From eaca864906a182f3c67c9a7517fd5fb92616b3dc Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Sat, 4 Dec 2004 20:36:29 +0000 Subject: [PATCH] Fix crash (only gcc?) --- stepmania/src/Background.cpp | 2 +- stepmania/src/Preference.h | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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 ) {