parent
1ac042c941
commit
e8005f51aa
1 changed files with 5 additions and 0 deletions
|
@ -1984,6 +1984,11 @@ void console_handler::do_unit()
|
|||
|
||||
unit_map::iterator i = menu_handler_.current_unit();
|
||||
if(i == menu_handler_.pc_.get_units().end()) {
|
||||
utils::string_map symbols;
|
||||
symbols["unit"] = get_arg(1);
|
||||
command_failed(VGETTEXT(
|
||||
"Debug command 'unit: $unit' failed: no unit selected or hovered over.",
|
||||
symbols));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue