Fix the build
Explicitly use t_str() to avoid an ambiguous construction from7bee8ee157
, which made GCC9 error out because it could alternatively use t_string::t_string(const string &). Resolve the merge conflict from26d1ca7a7d
This commit is contained in:
parent
a090a0ff78
commit
af91654e26
2 changed files with 2 additions and 5 deletions
|
@ -67,10 +67,7 @@
|
|||
[/tag]
|
||||
[tag]
|
||||
name="special_note"
|
||||
<<<<<<< HEAD
|
||||
max="infinite"
|
||||
=======
|
||||
>>>>>>> special_notes
|
||||
{REQUIRED_KEY note t_string}
|
||||
[/tag]
|
||||
{LINK_TAG "units/movetype/resistance"}
|
||||
|
|
|
@ -620,7 +620,7 @@ void unit::init(const config& cfg, bool use_traits, const vconfig* vcfg)
|
|||
set_attr_changed(UA_NOTES);
|
||||
special_notes_.clear();
|
||||
for(const config& c : cfg_range) {
|
||||
special_notes_.emplace_back(c["note"]);
|
||||
special_notes_.emplace_back(c["note"].t_str());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1941,7 +1941,7 @@ void unit::apply_builtin_effect(std::string apply_to, const config& effect)
|
|||
|
||||
if(config::const_child_itors cfg_range = effect.child_range("add_special_note")) {
|
||||
for(const config& c : cfg_range) {
|
||||
special_notes_.emplace_back(c["note"]);
|
||||
special_notes_.emplace_back(c["note"].t_str());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue