diff --git a/src/actions/undo.cpp b/src/actions/undo.cpp index 15d6ca94dad6..929119d42ad9 100644 --- a/src/actions/undo.cpp +++ b/src/actions/undo.cpp @@ -265,7 +265,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"]);