diff --git a/Runtime/Character/CCharacterInfo.cpp b/Runtime/Character/CCharacterInfo.cpp index afafb5760..f5610f613 100644 --- a/Runtime/Character/CCharacterInfo.cpp +++ b/Runtime/Character/CCharacterInfo.cpp @@ -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; diff --git a/Runtime/Character/CCharacterInfo.hpp b/Runtime/Character/CCharacterInfo.hpp index b94acd251..b5e5a8d22 100644 --- a/Runtime/Character/CCharacterInfo.hpp +++ b/Runtime/Character/CCharacterInfo.hpp @@ -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