summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--indra/newview/llviewerinput.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/indra/newview/llviewerinput.cpp b/indra/newview/llviewerinput.cpp
index 9f16b6a4d5..369db33642 100644
--- a/indra/newview/llviewerinput.cpp
+++ b/indra/newview/llviewerinput.cpp
@@ -732,11 +732,11 @@ bool run_right(EKeystate s)
if (gAgent.mDoubleTapRunMode != LLAgent::DOUBLETAP_SLIDERIGHT)
{
gAgent.mDoubleTapRunMode = LLAgent::DOUBLETAP_SLIDERIGHT;
- if (!gAgent.getRunning())
- {
- gAgent.setRunning();
- gAgent.sendWalkRun(true);
- }
+ }
+ if (!gAgent.getRunning())
+ {
+ gAgent.setRunning();
+ gAgent.sendWalkRun(true);
}
}
else if (KEYSTATE_UP == s)