mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-03 23:53:28 +00:00
fix a bug introduced by 2007-10-05T19:57:55Z!jeremy.rosen@enst-bretagne.fr. boucman, please review this.
This commit is contained in:
parent
6f054cf806
commit
e47b61f660
@ -1326,7 +1326,7 @@ bool mouse_handler::attack_enemy_(unit_map::iterator attacker, unit_map::iterato
|
||||
const battle_context::unit_stats& att = bc_vector[i].get_attacker_stats();
|
||||
const battle_context::unit_stats& def = bc_vector[i].get_defender_stats();
|
||||
config tmp_config;
|
||||
attack_type no_weapon(tmp_config, "fake_attack", "");
|
||||
attack_type no_weapon(tmp_config, "fake_attack", false);
|
||||
const attack_type& attw = attack_type(*att.weapon);
|
||||
const attack_type& defw = attack_type(def.weapon ? *def.weapon : no_weapon);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user