From 652d373a29fa7331fa3a2d783e98e9555c61ae08 Mon Sep 17 00:00:00 2001 From: adly98 Date: Fri, 17 Mar 2023 00:52:58 +0200 Subject: [PATCH] [army] when no free units show 0 --- client/files/content/scripts/5-army.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/files/content/scripts/5-army.js b/client/files/content/scripts/5-army.js index 220ef213..0b3b6bdc 100644 --- a/client/files/content/scripts/5-army.js +++ b/client/files/content/scripts/5-army.js @@ -381,7 +381,7 @@ function armyLoadData() out += utils.createTableRow([ [7, loca.GetText("RES", item)], [2, checkedPacket.army[item]], - [2, armyFreeInfo[item]], + [2, armyFreeInfo[item] ? armyFreeInfo[item] : 0], [1, aStatus ? 'OK' : 'FAIL', aStatus ? "buffReady" : "buffNotReady"]]); }); if(checkedPacket.canSubmit) {