From 6557fb17ce02f27f162cb05e63be0726fa727594 Mon Sep 17 00:00:00 2001 From: Fris0uman Date: Sun, 26 Apr 2020 18:04:59 +0200 Subject: [PATCH] get_armor_acid --- src/character.cpp | 4 ++-- src/character.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/character.cpp b/src/character.cpp index a8cb8151124d6..d92143f0591a3 100644 --- a/src/character.cpp +++ b/src/character.cpp @@ -7187,9 +7187,9 @@ int Character::get_env_resist( bodypart_id bp ) const return ret; } -int Character::get_armor_acid( body_part bp ) const +int Character::get_armor_acid( bodypart_id bp ) const { - return get_armor_type( DT_ACID, convert_bp( bp ).id() ); + return get_armor_type( DT_ACID, bp ); } int Character::get_stim() const diff --git a/src/character.h b/src/character.h index f255f3102e54a..6a72dc603cd0e 100644 --- a/src/character.h +++ b/src/character.h @@ -1733,7 +1733,7 @@ class Character : public Creature, public visitable /** Returns overall env_resist on a body_part */ int get_env_resist( bodypart_id bp ) const override; /** Returns overall acid resistance for the body part */ - int get_armor_acid( body_part bp ) const; + int get_armor_acid( bodypart_id bp ) const; /** Returns overall resistance to given type on the bod part */ int get_armor_type( damage_type dt, bodypart_id bp ) const override;