forked from 0ad/0ad
Show a 1 when only a single unit remains garrisoned (re-fixes #610)
This was SVN commit r8457.
This commit is contained in:
parent
2b2cac2a8d
commit
b100ba5a08
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user