ControllerEmu: Don't clear expression variables on references update. Hotplug would make that problematic.

This commit is contained in:
Jordan Woyak 2019-10-11 19:42:49 -05:00
parent 4d41bd64c8
commit b4e2b3cae3

View File

@ -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);