Commit 980aeffa authored by hybrid's avatar hybrid

Fix strange bugs when limits are wrongly set.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3611 dfc29bdd-3216-0410-991c-e03cc46cb475
parent a452e850
......@@ -129,6 +129,8 @@ f32 CGUISpinBox::getValue() const
void CGUISpinBox::setRange(f32 min, f32 max)
{
if (max<min)
core::swap(min, max);
RangeMin = min;
RangeMax = max;
verifyValueRange();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment