Don't be mean with asserts here.
This commit is contained in:
@@ -494,7 +494,10 @@ static void DefaultFailType( int &sel, bool ToSel, const ConfOption *pConfOption
|
|||||||
case 2: po.m_FailType = PlayerOptions::FAIL_AT_END; break;
|
case 2: po.m_FailType = PlayerOptions::FAIL_AT_END; break;
|
||||||
case 3: po.m_FailType = PlayerOptions::FAIL_OFF; break;
|
case 3: po.m_FailType = PlayerOptions::FAIL_OFF; break;
|
||||||
default:
|
default:
|
||||||
ASSERT(0);
|
{
|
||||||
|
LOG->Warn("Invalid fail type %d! Going to use the default...", sel);
|
||||||
|
po.m_FailType = PlayerOptions::FAIL_IMMEDIATE; break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SetPrefsDefaultModifiers( po, so );
|
SetPrefsDefaultModifiers( po, so );
|
||||||
|
|||||||
Reference in New Issue
Block a user