summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon
diff options
context:
space:
mode:
authorJordan Woyak <jordan.woyak@gmail.com>2019-10-11 19:42:49 -0500
committerJordan Woyak <jordan.woyak@gmail.com>2019-10-11 19:42:49 -0500
commitb4e2b3cae330be2a9f050a90c3bbb9d38f047777 (patch)
tree3f491cdd2c78dda29e10ef908bcca8a21aedb8c2 /Source/Core/InputCommon
parent4d41bd64c8c01884fa0c2a663cc76a696c30adbb (diff)
ControllerEmu: Don't clear expression variables on references update. Hotplug would make that problematic.
Diffstat (limited to 'Source/Core/InputCommon')
-rw-r--r--Source/Core/InputCommon/ControllerEmu/ControllerEmu.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/Source/Core/InputCommon/ControllerEmu/ControllerEmu.cpp b/Source/Core/InputCommon/ControllerEmu/ControllerEmu.cpp
index 2cf5edbb00..c5ff0705a2 100644
--- a/Source/Core/InputCommon/ControllerEmu/ControllerEmu.cpp
+++ b/Source/Core/InputCommon/ControllerEmu/ControllerEmu.cpp
@@ -40,9 +40,6 @@ void EmulatedController::UpdateReferences(const ControllerInterface& devi)
{
m_default_device_is_connected = devi.HasConnectedDevice(m_default_device);
- // Reset variables:
- m_expression_vars.clear();
-
ciface::ExpressionParser::ControlEnvironment env(devi, GetDefaultDevice(), m_expression_vars);
UpdateReferences(env);