forked from github/server
crashbug preferre_weapon==0
This commit is contained in:
parent
14f50e3b3d
commit
a8b46dfc4b
|
@ -2189,14 +2189,13 @@ do_attack(fighter * af)
|
||||||
if (au->race->attack[a].type!=AT_STANDARD) continue;
|
if (au->race->attack[a].type!=AT_STANDARD) continue;
|
||||||
else {
|
else {
|
||||||
weapon * wp = preferred_weapon(ta, true);
|
weapon * wp = preferred_weapon(ta, true);
|
||||||
if (wp->type->reload) continue;
|
if (wp!=NULL && wp->type->reload) continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
attack(b, ta, &(au->race->attack[a]));
|
attack(b, ta, &(au->race->attack[a]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue