Handling empty team in :droid (#9165)

This commit is contained in:
Drew Tate 2024-08-07 01:19:21 -06:00 committed by GitHub
parent a3aca1c0be
commit da426144a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1563,6 +1563,9 @@ void console_handler::do_droid()
psc->set_player_type_changed();
}
}
} else {
command_failed(VGETTEXT("Side '$side' is not a human or AI player.", symbols));
return;
}
menu_handler_.textbox_info_.close();
}