summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/Src/ControllerInterface
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2013-07-12 13:26:09 -0400
committerJasper St. Pierre <jstpierre@mecheye.net>2013-07-12 13:26:09 -0400
commitb64e882ba5f34f63bf588ed2e14ff28247675982 (patch)
treec2aee06829988a252d824b42f3686041c045bacb /Source/Core/InputCommon/Src/ControllerInterface
parentc52a583090f5fe8dd36a57b2d7628e18ef5f2721 (diff)
ExpressionParser: Parse fully qualified control names correctly
Without clearing out the "accumulator" for the backtick parsing, our control name was full of junk (the previous device name) causing us to not correctly find the control. Ensure that always we clear the "accumulator" string during backtick parsing.
Diffstat (limited to 'Source/Core/InputCommon/Src/ControllerInterface')
-rw-r--r--Source/Core/InputCommon/Src/ControllerInterface/ExpressionParser.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/Core/InputCommon/Src/ControllerInterface/ExpressionParser.cpp b/Source/Core/InputCommon/Src/ControllerInterface/ExpressionParser.cpp
index 0677a04abb..d91fbc587c 100644
--- a/Source/Core/InputCommon/Src/ControllerInterface/ExpressionParser.cpp
+++ b/Source/Core/InputCommon/Src/ControllerInterface/ExpressionParser.cpp
@@ -95,6 +95,7 @@ public:
bool FetchBacktickString(std::string &value, char otherDelim = 0)
{
+ value = "";
while (it != expr.end())
{
char c = *it;