Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
partially fix 23076 (don't hold std::vector<unit> in recall dialog)
After this commit 9e7dc5b which introduced reference counted unit pointers, the recall dialog began to fail assertions. The problem was that it was making private copies of all units, and when units get deleted this list got out of sync. I'm not totally sure exactly what mechanism was making it work before, but this commit which shares the units list between the different gui elements prevents the assertion failure. Note that there is still a bug, in that the unit preview pane at left still gets out of sync somehow...
- Loading branch information
Showing
4 changed files
with
32 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters