Closed andy5995 closed 2 years ago
Te test this further, I started the scenario Egypt Mayhem.
I started the uprades: research scarab, speed-up priest production, and sharpen edges.
I saved the game while all 3 were in progress. When I re-loaded, all 3 upgrades had reset to 0%
Ok first of all it's not only upgrades, it's the progress for any unit (including buildings): The progress for a unit being built doesn't get saved either for example.
The issue is that when loading the game the setCurrSkill
function overrides the previously restored progress2
variable.
This happens here
I've worked around it in #244 but I'm not sure why that line is there in the first place (why is it set to 0).
I noticed this while playing the Amazones scenario on git.
To reproduce: