Skip to content

Commit

Permalink
Don't warn about missing [default] when there should be none
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Mar 23, 2016
1 parent 8478cd6 commit f7f4bfe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ai/configuration.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit f7f4bfe

Please sign in to comment.