Test/fix cyclic references in unit types
If a pair of unit types reference each other (e.g. they are mutually exclusive and each says "may not have any of other unit to take this unit") then the current implementation of the Race XML factory may have problems.
From a quick skim then it doesn't add the unit to the race until it is complete, so the "get by ID from the race, else fall back to getting by ID from the file and loading" code will hit a cyclic loop as it never adds the unit to the race, so it'll always try to load it, find the reference to the other unit, load that from the file, find the reference to the first unit, load that from the file again and so on.
Change History (4)
Priority: |
major →
critical
|
Owner: |
set to IBBoard <dev@…>
|
Resolution: |
→ fixed
|
Status: |
confirmed →
closed
|
Increasing priority - causes stack overflows when it occurs!