NumericSettings: Initialize m_value to default_value in the constructor

Ensures that all class state is initialized to valid values.
This commit is contained in:
Lioncash 2017-03-03 14:06:14 -05:00
parent 51e932b4ec
commit 25e70570b5
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ namespace ControllerEmu
NumericSetting::NumericSetting(const std::string& setting_name, const ControlState default_value,
const u32 low, const u32 high, const SettingType setting_type)
: m_type(setting_type), m_name(setting_name), m_default_value(default_value), m_low(low),
m_high(high)
m_high(high), m_value(default_value)
{
}