CCharacterInfo: Remove unnecessary top-level const in return value of GetAnimationIndex()

Same behavior, less code.
This commit is contained in:
Lioncash 2020-02-28 04:56:41 -05:00
parent 63cf485f27
commit 9524208cd2
2 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ CCharacterInfo::CCharacterInfo(CInputStream& in)
}
}
const s32 CCharacterInfo::GetAnimationIndex(std::string_view name) const {
s32 CCharacterInfo::GetAnimationIndex(std::string_view name) const {
for (const auto& pair : x20_animInfo) {
if (pair.second.second == name)
return pair.first;

View File

@ -66,6 +66,6 @@ public:
s32 GetAnimationIndex(s32 idx) const { return xb0_animIdxs.at(idx); }
const CPASDatabase& GetPASDatabase() const { return x30_pasDatabase; }
const s32 GetAnimationIndex(std::string_view) const;
s32 GetAnimationIndex(std::string_view) const;
};
} // namespace urde