| 791 | }); |
| 792 | } |
| 793 | void save_from_unit(UnitInfo *unit) |
| 794 | { |
| 795 | ProfessionTemplate t = { |
| 796 | unit_ops::get_profname(unit) |
| 797 | }; |
| 798 | |
| 799 | t.fromUnit(unit); |
| 800 | t.save(professions_folder); |
| 801 | reload(); |
| 802 | } |
| 803 | |
| 804 | private: |
| 805 | void _load(const std::string &path, bool library) { |
no test coverage detected