diff options
| author | Andrey Lihatskiy <alihatskiy@productengine.com> | 2023-08-03 22:35:00 +0300 | 
|---|---|---|
| committer | Andrey Lihatskiy <alihatskiy@productengine.com> | 2023-08-04 01:44:44 +0300 | 
| commit | bbb1f32cfcb91d36a765770935a7b378d5a9d7f9 (patch) | |
| tree | 39baf192e2118dc9465b34e7e393b65048d747ce | |
| parent | 8ed2fb94641393b391425987a108057753729d41 (diff) | |
SL-20121 Fixed the crash in LLViewerInput::getKeyBindingAsString()
| -rw-r--r-- | indra/newview/llviewerinput.cpp | 2 | 
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; | 
