fix a bug introduced by 2007-10-05T19:57:55Z!jeremy.rosen@enst-bretagne.fr. boucman, please review this.

This commit is contained in:
Patrick Parker 2007-10-06 02:20:55 +00:00
parent 6f054cf806
commit e47b61f660

View File

@ -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);