mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-02 18:23:27 +00:00
GUI: Fix check for no usable weapons.
Fixes #3424. (cherry-picked from commit f293c7cb3226bc7b28dbb968419ab54ff4e180da)
This commit is contained in:
parent
87c87aee3e
commit
01867f9a2c
@ -988,7 +988,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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user