Fix crash (only gcc?)
This commit is contained in:
@@ -202,7 +202,7 @@ CString Background::CreateRandomBGA()
|
|||||||
switch( PREFSMAN->m_iBackgroundMode )
|
switch( PREFSMAN->m_iBackgroundMode )
|
||||||
{
|
{
|
||||||
default:
|
default:
|
||||||
FAIL_M( ssprintf("Invalid BackgroundMode: %i", PREFSMAN->m_iBackgroundMode) );
|
FAIL_M( ssprintf("Invalid BackgroundMode: %d", PREFSMAN->m_iBackgroundMode.GetValue()) );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PrefsManager::BGMODE_ANIMATIONS:
|
case PrefsManager::BGMODE_ANIMATIONS:
|
||||||
|
|||||||
@@ -71,6 +71,11 @@ public:
|
|||||||
return m_currentValue;
|
return m_currentValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
T GetValue() const
|
||||||
|
{
|
||||||
|
return m_currentValue;
|
||||||
|
}
|
||||||
|
|
||||||
void operator=( const T& other )
|
void operator=( const T& other )
|
||||||
{
|
{
|
||||||
m_currentValue = other;
|
m_currentValue = other;
|
||||||
|
|||||||
Reference in New Issue
Block a user