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:
parent
f93d8dc66c
commit
507b9e5822
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user