mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
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:
@ -9,7 +9,7 @@ namespace ControllerEmu
|
|||||||
NumericSetting::NumericSetting(const std::string& setting_name, const ControlState default_value,
|
NumericSetting::NumericSetting(const std::string& setting_name, const ControlState default_value,
|
||||||
const u32 low, const u32 high, const SettingType setting_type)
|
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_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)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user