Fix crash (only gcc?)

This commit is contained in:
Steve Checkoway
2004-12-04 20:36:29 +00:00
parent fa9afed825
commit eaca864906
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -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:
+5
View File
@@ -71,6 +71,11 @@ public:
return m_currentValue;
}
T GetValue() const
{
return m_currentValue;
}
void operator=( const T& other )
{
m_currentValue = other;