This commit is contained in:
@@ -116,7 +116,7 @@ impl Form {
|
||||
}
|
||||
|
||||
/// Find the index of an ability that can be on this form.
|
||||
pub fn find_ability_index(&self, ability: &Ability) -> Option<AbilityIndex> {
|
||||
pub fn find_ability_index(&self, ability: &dyn Ability) -> Option<AbilityIndex> {
|
||||
for (index, a) in self.abilities.iter().enumerate() {
|
||||
if a == ability.name() {
|
||||
return Some(AbilityIndex {
|
||||
|
||||
Reference in New Issue
Block a user