diff --git a/src/actions/undo.cpp b/src/actions/undo.cpp index fc9234a8985..ad0a08bfdd2 100644 --- a/src/actions/undo.cpp +++ b/src/actions/undo.cpp @@ -113,8 +113,8 @@ undo_list::undo_action::undo_action(const config & cfg, const std::string & tag) } } else if ( type == MOVE ) { - unit_goto.x = cfg["goto_x"].to_int(-999) - 1; - unit_goto.y = cfg["goto_y"].to_int(-999) - 1; + unit_goto.x = child["goto_x"].to_int(-999) - 1; + unit_goto.y = child["goto_y"].to_int(-999) - 1; } }