GUI: Fix check for no usable weapons.

Fixes #3424.
This commit is contained in:
josteph 2018-08-03 12:33:23 +00:00 committed by Jyrki Vesterinen
parent 46bec21fa3
commit f293c7cb32

View file

@ -980,7 +980,7 @@ int mouse_handler::show_attack_dialog(const map_location& attacker_loc, const ma
std::vector<battle_context> bc_vector;
const int best = fill_weapon_choices(bc_vector, attacker, defender);
if((*attacker).attacks().empty()) {
if(bc_vector.empty()) {
gui2::show_transient_message("No Attacks", _("This unit has no usable weapons."));
return -1;