Fix a superfluous condition

(a != 0 || a != 1) makes no sense. Author probably meant AND, not OR.

Change-Id: If91954e9e48e5804c54380db8c99184ef0fcc1d2
This commit is contained in:
Pranav Kant 2017-07-20 21:08:19 +05:30
parent 92cdab8bf8
commit a283942b00

View file

@ -1192,7 +1192,7 @@ private:
}
// 0 for preventing selection of the first always
// 1 for preventing the new users from directly beoming the editors
if (_editorId != fastestUser && (maxSpeed != 0 || maxSpeed != 1)) {
if (_editorId != fastestUser && (maxSpeed != 0 && maxSpeed != 1)) {
if (!_editorChangeWarning && _editorId != -1)
{
_editorChangeWarning = true;