summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llviewerinput.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llviewerinput.cpp b/indra/newview/llviewerinput.cpp
index 3f8e6f57f6..aac0cba92e 100644
--- a/indra/newview/llviewerinput.cpp
+++ b/indra/newview/llviewerinput.cpp
@@ -1028,7 +1028,7 @@ bool LLViewerInput::modeFromString(const std::string& string, S32 *mode)
}
S32 val = atoi(string.c_str());
- if (val >= 0 || val < MODE_COUNT)
+ if (val >= 0 && val < MODE_COUNT)
{
*mode = val;
return true;