Show a 1 when only a single unit remains garrisoned (re-fixes #610)

This was SVN commit r8457.
This commit is contained in:
WhiteTreePaladin 2010-10-24 18:01:11 +00:00
parent 2b2cac2a8d
commit b100ba5a08

View File

@ -221,7 +221,7 @@ function setupUnitPanel(guiName, usedPanels, unitEntState, items, callback)
if (item == "unload-all")
{
var count = unitEntState.garrisonHolder.entities.length;
getGUIObjectByName("unit"+guiName+"Count["+i+"]").caption = (count > 1 ? count : "");
getGUIObjectByName("unit"+guiName+"Count["+i+"]").caption = (count > 0 ? count : "");
}
else
{