Need to initialise step_ here, too.

This commit is contained in:
The Dax committed 2014-08-16 15:15:01 -04:00
1 parent 69e66df07e
commit cfae07f72b
1 file changed
+1 -1
+1 -1
View File
@@ -300,7 +300,7 @@ PopupSliderChoice::PopupSliderChoice(int *value, int minValue, int maxValue, con
}
PopupSliderChoiceFloat::PopupSliderChoiceFloat(float *value, float minValue, float maxValue, const std::string &text, ScreenManager *screenManager, LayoutParams *layoutParams)
: Choice(text, "", false, layoutParams), value_(value), minValue_(minValue), maxValue_(maxValue), screenManager_(screenManager) {
: Choice(text, "", false, layoutParams), value_(value), minValue_(minValue), maxValue_(maxValue), step_(1.0f), screenManager_(screenManager) {
OnClick.Handle(this, &PopupSliderChoiceFloat::HandleClick);
}