mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-09 16:48:01 +00:00
Fix advance references to units that have variations
Reported by bumbadadabum
This commit is contained in:
parent
2b61f2a897
commit
7feeeb33c4
@ -1372,7 +1372,8 @@ public:
|
||||
std::string lang_unit = type->type_name();
|
||||
std::string ref_id;
|
||||
if (description_type(*type) == FULL_DESCRIPTION) {
|
||||
ref_id = unit_prefix + type->id();
|
||||
const std::string section_prefix = type->variations().empty() ? "" : "..";
|
||||
ref_id = section_prefix + unit_prefix + type->id();
|
||||
} else {
|
||||
ref_id = unknown_unit_topic;
|
||||
lang_unit += " (?)";
|
||||
|
Loading…
x
Reference in New Issue
Block a user