1
0
mirror of https://github.com/Oarcinae/FactorioScenarioMultiplayerSpawn.git synced 2024-12-14 10:23:17 +02:00

Fixed broken MergeForcesKeepResearch function. Forgot it hadn't been tested yet...

This commit is contained in:
Oarcinae 2018-01-25 13:08:48 -05:00
parent f600dfeeea
commit 0b83e24c35

View File

@ -283,7 +283,7 @@ end
-- Merges force2 INTO force1 but keeps all research between both forces.
function MergeForcesKeepResearch(force1, force2)
for techName,luaTech in pairs(force2.technologies)
for techName,luaTech in pairs(force2.technologies) do
if (luaTech.researched) then
force1.technologies[techName].researched = true
force1.technologies[techName].level = luaTech.level