Skip to content

Commit 4014151

Browse files
committed
Fix for issue #4 (some modules don't revert to base stats when all upgrades are disabled)
1 parent c46a1ed commit 4014151

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UpgradesUIExtensions/EditorTooltipWithUpgrades.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ private void ApplyUpgrades(UpgradePrefab prefab)
428428
{
429429
if (moduleNodes[i].GetValue("name") == pm.moduleName)
430430
{
431-
pm.OnLoad(moduleNodes[i]);
431+
pm.Load(moduleNodes[i]); // OnLoad() isn't enough (issue #4). ex : ok for ModuleEngines, not ok for ModuleDataTransmitter.
432432
}
433433
}
434434
}

0 commit comments

Comments
 (0)