Actions
Feature #2334
closedcity_add_unit(), handle spec_type either nullptr or not
Start date:
10/05/2026
Due date:
% Done:
0%
Estimated time:
Description
Files
Updated by Marko Lindqvist 30 days ago
- Blocked by Feature #2187: Main: load_ruleset_units(): allow spec_type to be NULL if no specialist entry added
Updated by Marko Lindqvist 19 days ago
Does this patch (as it's currently implement) change anything? Isn't the auto_arrange_workers() in the end converting the specialists to field workers even if they are, for less than a millisecond, specialists of other type than DEFAULT_SPECIALIST?
Even if it doesn't, calling auto_arrange_workers() breaks things when unit spec_type is DEFAULT_SPECIALIST.
I think this ticket should basically replace "if (is_super_specialist()) {" with "if (act_utype->spec_type != nullptr) {"
Updated by Marko Lindqvist 18 days ago
- Status changed from New to In Review
- Assignee set to Marko Lindqvist
- Target version set to 3.4.0
Actions