SL-20121 Fixed the crash in LLViewerInput::getKeyBindingAsString()

master
Andrey Lihatskiy 2023-08-03 22:35:00 +03:00
parent 8ed2fb9464
commit bbb1f32cfc
1 changed files with 1 additions and 1 deletions

View File

@ -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;