From 1432343eeb73fe5a513ea01ba366daab3d3d43df Mon Sep 17 00:00:00 2001 From: Angen Date: Sun, 27 Dec 2020 15:47:30 +0000 Subject: [PATCH] Fix upgrades not being sorted by phase in structuretree Currenlty there is regression in structuretree from b2842e8021, when upgrade for sentry tower is not in the correct phase row. Thix is fixing that. Probably typo in condition. Differential Revision: D3252 Reviewed by: bb This was SVN commit r24461. --- .../gui/reference/structree/Boxes/ProductionRowManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binaries/data/mods/public/gui/reference/structree/Boxes/ProductionRowManager.js b/binaries/data/mods/public/gui/reference/structree/Boxes/ProductionRowManager.js index ef453e448e..02bab27ac7 100644 --- a/binaries/data/mods/public/gui/reference/structree/Boxes/ProductionRowManager.js +++ b/binaries/data/mods/public/gui/reference/structree/Boxes/ProductionRowManager.js @@ -54,7 +54,7 @@ class ProductionRowManager for (let upgrade of template.upgrades) { let pIdx = 0; - if (this.phaseSort) + if (this.sortProductionsByPhase) pIdx = this.page.TemplateParser.phaseList.indexOf(upgrade.phase); let rowIdx = Math.max(0, pIdx - phaseIdx); this.productionRows[rowIdx].drawIcon(upgrade, civCode);