Skip to content

Commit

Permalink
fixup 9e7dc5b
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeck88 committed Jun 17, 2014
1 parent 3fe799a commit a0b8495
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/actions/create.cpp
Expand Up @@ -191,10 +191,9 @@ void unit_creator::add_unit(const config &cfg, const vconfig* vcfg)
temp_cfg.remove_attribute("animate");

std::vector<UnitPtr > &recall_list = team_.recall_list();
std::vector<UnitPtr >::iterator recall_list_it = find_if_matches_id(recall_list, id);
UnitPtr & recall_list_element = *recall_list_it;
std::vector<UnitPtr >::iterator recall_list_element = find_if_matches_id(recall_list, id);

if ( recall_list_it == recall_list.end() ) {
if ( recall_list_element == recall_list.end() ) {
//make a temporary unit
boost::scoped_ptr<unit> temp_unit(new unit(temp_cfg, true, vcfg));
map_location loc = find_location(temp_cfg, temp_unit.get());
Expand Down

0 comments on commit a0b8495

Please sign in to comment.