Skip to content

Commit

Permalink
fix an invalid error message
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgtdf committed Jun 26, 2014
1 parent bc595d8 commit d69a224
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/actions/undo.cpp
Expand Up @@ -244,7 +244,7 @@ undo_list::undo_action::create(const config & cfg, const std::string & tag)
map_location::parse_direction(cfg["starting_direction"]));
}

if ( str == "recruit" ) {
else if ( str == "recruit" ) {
// Validate the unit type.
const config & child = cfg.child("unit", tag);
const unit_type * u_type = unit_types.find(child["type"]);
Expand Down

0 comments on commit d69a224

Please sign in to comment.