Fix a compiler error.
This commit is contained in:
parent
68b245e4be
commit
85e71bf571
1 changed files with 5 additions and 3 deletions
|
@ -368,9 +368,11 @@ bool ai::recruit_usage(const std::string& usage)
|
|||
if (found) {
|
||||
LOG_AI << "No available units to recruit that come under the price.\n";
|
||||
} else if (usage != "") {
|
||||
const std::string warning = "Trying to recruit a: " + usage + " but no unit of that type (usage=) is available. "
|
||||
"Check the recruit and [ai] recruitment_pattern keys for this side against the usage key of the units in question! ";
|
||||
"Removing invalid recruitment_pattern entry and continuing...\n";
|
||||
const std::string warning = "Trying to recruit a: " + usage + " but no "
|
||||
"unit of that type (usage=) is available. Check the recruit and "
|
||||
"[ai] recruitment_pattern keys for this side against the usage key "
|
||||
"of the units in question! Removing invalid recruitment_pattern "
|
||||
"entry and continuing...\n";
|
||||
WRN_AI << warning;
|
||||
lg::wml_error << warning;
|
||||
return current_team().remove_recruitment_pattern_entry(usage);
|
||||
|
|
Loading…
Add table
Reference in a new issue