Merge pull request #169 from MrRozdor/spread_researching

Fix for migation to new researchSync version
This commit is contained in:
Godmave authored and GitHub committed 2019-07-15 21:50:38 +02:00
commit f28b73cf31
1 file changed
+2 -1
+2 -1
View File
@@ -156,7 +156,8 @@ class ResearchSync {
for (let slave_data of slaves_data)
for (let [name, research] of Object.entries(slave_data.meta.research))
if (!isNaN(cluster_researches[name].progress) && !isNaN(research.contribution))
if (cluster_researches[name]
&& !isNaN(cluster_researches[name].progress) && !isNaN(research.contribution))
cluster_researches[name].progress += research.contribution
for (let [name, research] of Object.entries(cluster_researches)) {