fix division by zero for zero-time technologies. Fixes #2334
This was SVN commit r14459.
This commit is contained in:
parent
c7ff0bb486
commit
f8ca47913d
@ -413,7 +413,7 @@ ProductionQueue.prototype.GetQueue = function()
|
||||
"technologyTemplate": item.technologyTemplate,
|
||||
"count": item.count,
|
||||
"neededSlots": item.neededSlots,
|
||||
"progress": 1-(item.timeRemaining/item.timeTotal),
|
||||
"progress": 1 - ( item.timeRemaining / (item.timeTotal || 1) ),
|
||||
"metadata": item.metadata,
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user