Missing a check before logging a message.

(No change in functionality, just when a message is logged.)

(Compare this to the preceding if-else-if.)
This commit is contained in:
J. Tyne 2012-08-16 02:00:22 +00:00
parent d6348867da
commit 47ba0e6aed

View file

@ -294,7 +294,8 @@ void unit_creator::add_unit(const config &cfg, const vconfig* vcfg)
post_create(loc,*(resources::units->find(loc)),animate);
//if id is not empty, delete units with this ID from recall list
erase_if_matches_id(recall_list, id);
} else {
}
else if ( add_to_recall_ ) {
LOG_NG << "wanted to insert unit on recall list, but recall list for side " << (cfg)["side"] << "already contains id=" <<id<<"\n";
return;
}