Closed tripleabuilderbot closed 4 months ago
"attempted merging values Britain and Britain" is the relevant part - so the duplicates being merged aren't units in this case...
EDIT: Actually, the above is incorrect, it's still merging units via buildUnitOwnerMap(), it's just we map them to country names.
Given the clearWaitingToDieAndDamagedChangesInto(), it seems we end up with attackingWaitingToDie
having duplicates.
That's hard to debug since it's pretty core battle logic. We could add some instrumentation to catch this error earlier to see if we can make some sense of what's going wrong. Or if someone has a repro save, that would be ideal.
One option would be to just check for and omit duplicates when adding to attackingWaitingToDie
.
But that would be a bit of an unsatisfactory solution. But maybe still worth doing to make the engine more stable.
Map
total_world_war
TripleA Version
2.6.14356
Java Version
11.0.9.1
Operating System
Windows 10
Stack Trace