Skip to content

Commit

Permalink
GUI: Fix check for no usable weapons.
Browse files Browse the repository at this point in the history
Fixes #3424.

(cherry-picked from commit f293c7c)
  • Loading branch information
jostephd authored and jyrkive committed Oct 7, 2018
1 parent 87c87ae commit 01867f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mouse_events.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 01867f9

Please sign in to comment.