Fix a broken early return from a1ddf6114a

Reported By: Imarok
This was SVN commit r22113.
This commit is contained in:
bb
2019-03-16 14:39:51 +00:00
parent 702127b8df
commit 9a73b7485d
@@ -1177,7 +1177,7 @@ function positionUnitsFreehandSelectionMouseUp(ev)
inputState = INPUT_NORMAL;
let inputLine = g_FreehandSelection_InputLine;
g_FreehandSelection_InputLine = [];
if (!ev.button == SDL_BUTTON_RIGHT)
if (ev.button != SDL_BUTTON_RIGHT)
return true;
let lengthOfLine = 0;