| 290 | } |
| 291 | |
| 292 | static int32_t get_spouse_hfid(color_ostream &out, df::historical_figure *hf) { |
| 293 | for (auto link : hf->histfig_links) { |
| 294 | if (link->getType() == df::histfig_hf_link_type::SPOUSE) |
| 295 | return link->target_hf; |
| 296 | } |
| 297 | return -1; |
| 298 | } |
| 299 | |
| 300 | static vector<int32_t> get_spouse_ids(color_ostream &out, const vector<df::unit *> units) { |
| 301 | vector<int32_t> spouse_ids; |
no test coverage detected