mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-10 21:29:00 +00:00
More sanity checks to gender choice application on WML.
This commit is contained in:
parent
f1b1d163fb
commit
f6a1bc9c91
@ -558,7 +558,9 @@ config connect::side::get_config() const
|
||||
res["type"] = leader_;
|
||||
}
|
||||
if (gender_.empty()) {
|
||||
res["gender"] = llm_.get_gender();
|
||||
std::string dummy = llm_.get_gender();
|
||||
if (!dummy.empty() && dummy != "null" && dummy != "?")
|
||||
res["gender"] = dummy;
|
||||
} else {
|
||||
// If no genders could be resolved, let the unit engine use
|
||||
// the default gender
|
||||
|
Loading…
x
Reference in New Issue
Block a user