mirror of https://github.com/AxioDL/metaforce.git
CCharacterInfo: Remove unnecessary top-level const in return value of GetAnimationIndex()
Same behavior, less code.
This commit is contained in:
parent
63cf485f27
commit
9524208cd2
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue