Fix error

This commit is contained in:
Dominic Bolin 2006-04-04 01:46:50 +00:00
parent 6d7734230b
commit 6e9cc7431e

View File

@ -656,7 +656,7 @@ bool attack_type::special_active(const config& cfg,bool self,bool report) const
}
if(cfg.child("filter_opponent")->child("filter_weapon") != NULL) {
if(!other_attack_ || other_attack_->matches_filter(*cfg.child("filter_opponent")->child("filter_weapon"),0,true)) {
if(!other_attack_ || !other_attack_->matches_filter(*cfg.child("filter_opponent")->child("filter_weapon"),0,true)) {
return false;
}
}