mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-24 09:53:52 +00:00
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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user