From d69a224269a765e66ce3720355efb3ac552678a8 Mon Sep 17 00:00:00 2001 From: gfgtdf Date: Thu, 26 Jun 2014 21:18:27 +0200 Subject: [PATCH] fix an invalid error message --- src/actions/undo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/actions/undo.cpp b/src/actions/undo.cpp index 0f02a364e51e..c3681129a5b7 100644 --- a/src/actions/undo.cpp +++ b/src/actions/undo.cpp @@ -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"]);