Don't be mean with asserts here.

This commit is contained in:
Jason Felds
2011-07-06 16:35:43 -04:00
parent fab94d3a32
commit 2698ef8967
+4 -1
View File
@@ -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 );