Don't warn about missing [default] when there should be none

This commit is contained in:
Celtic Minstrel 2016-03-22 20:26:30 -04:00
parent 8478cd604c
commit f7f4bfe321

View file

@ -223,6 +223,10 @@ bool configuration::parse_side_config(side_number side, const config& original_c
LOG_AI_CONFIGURATION << "side "<< side <<": removing duplicate [default] tags from aspects"<< std::endl;
BOOST_FOREACH(config &aspect_cfg, parsed_cfg.child_range("aspect")) {
if (aspect_cfg["name"] != "composite_aspect") {
// No point in warning about Lua or standard aspects lacking [default]
continue;
}
if (!aspect_cfg.child("default")) {
WRN_AI_CONFIGURATION << "side "<< side <<": aspect with id=["<<aspect_cfg["id"]<<"] lacks default config facet!" <<std::endl;
continue;