summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerEmu/Setting/NumericSetting.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2017-03-03 14:06:14 -0500
committerLioncash <mathew1800@gmail.com>2017-03-03 14:06:16 -0500
commit25e70570b5691b9ac65a3f0ef7ac94c63887c808 (patch)
treed60ce4a96d30fac7ef7d3daacf8cf8c14e99c946 /Source/Core/InputCommon/ControllerEmu/Setting/NumericSetting.cpp
parent51e932b4ec24b0225a80c66a39c906f6e95f7519 (diff)
NumericSettings: Initialize m_value to default_value in the constructor
Ensures that all class state is initialized to valid values.
Diffstat (limited to 'Source/Core/InputCommon/ControllerEmu/Setting/NumericSetting.cpp')
-rw-r--r--Source/Core/InputCommon/ControllerEmu/Setting/NumericSetting.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/InputCommon/ControllerEmu/Setting/NumericSetting.cpp b/Source/Core/InputCommon/ControllerEmu/Setting/NumericSetting.cpp
index 17a0fd11b1..a15dd13f2f 100644
--- a/Source/Core/InputCommon/ControllerEmu/Setting/NumericSetting.cpp
+++ b/Source/Core/InputCommon/ControllerEmu/Setting/NumericSetting.cpp
@@ -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)
{
}