From b4e2b3cae330be2a9f050a90c3bbb9d38f047777 Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Fri, 11 Oct 2019 19:42:49 -0500 Subject: [PATCH] ControllerEmu: Don't clear expression variables on references update. Hotplug would make that problematic. --- Source/Core/InputCommon/ControllerEmu/ControllerEmu.cpp | 3 --- 1 file changed, 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);