Skip to content
Permalink
Browse files

ExpressionParser: Clear expression variables on UpdateReferences call…

…. I don't know if this is most sensible.
  • Loading branch information...
jordan-woyak committed Dec 30, 2018
1 parent e896835 commit 35e51ebbaa025bad87deb4668e0b32249dd62d77
Showing with 3 additions and 0 deletions.
  1. +3 −0 Source/Core/InputCommon/ControllerEmu/ControllerEmu.cpp
@@ -40,6 +40,9 @@ 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);

0 comments on commit 35e51eb

Please sign in to comment.
You can’t perform that action at this time.