Fixes UI becoming unresponsive when ordering units to garrison.

This was SVN commit r10190.
This commit is contained in:
historic_bruno 2011-09-06 02:06:24 +00:00
parent e100f7264b
commit 8b33f5cfd2

View File

@ -709,6 +709,15 @@ function handleInputAfterGui(ev)
inputState = INPUT_NORMAL;
break;
}
// else
default:
// Slight hack: If selection is empty, reset the input state
if (g_Selection.toList().length == 0)
{
preSelectedAction = ACTION_NONE;
inputState = INPUT_NORMAL;
break;
}
}
break;
case INPUT_SELECTING: