Skip to content

Commit

Permalink
fixup 'don't ignore [advancement] on unit construction'
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgtdf committed Jun 25, 2014
1 parent 4bb214d commit b49eed5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unit.cpp
Expand Up @@ -418,7 +418,7 @@ unit::unit(const config &cfg, bool use_traits, const vconfig* vcfg) :
{
cfg_.clear_children("advancement");
boost::copy( cfg.child_range("advancement")
, boost::make_function_output_iterator(boost::bind( &config::add_child, cfg_ /*thisptr*/, "advancement", _1 )) );
, boost::make_function_output_iterator(boost::bind( &config::add_child, boost::ref(cfg_) /*thisptr*/, "advancement", _1 )) );
}

//don't use the unit_type's abilities if this config has its own defined
Expand Down

0 comments on commit b49eed5

Please sign in to comment.