Fixed rare assertion failure

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6720 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2010-11-25 01:40:27 +00:00
parent f93d8dc66c
commit 507b9e5822

View File

@ -724,8 +724,9 @@ void DynamicRibbonWidget::propagateSelection()
{
where = 0.0f;
}
assert(where >= 0.0f);
assert(where <= 1.0f);
if (where < 0.0f) where = 0.0f;
else if (where > 1.0f) where = 1.0f;
if (m_combo)
{