From 73637128659db7df2f332ea3d3285d07abf25f4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Sun, 11 Apr 2021 14:31:55 +0200 Subject: ksys/res: Finish implementing ASExtensions --- src/KingSystem/ActorSystem/actASSetting.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/KingSystem/ActorSystem/actASSetting.cpp') diff --git a/src/KingSystem/ActorSystem/actASSetting.cpp b/src/KingSystem/ActorSystem/actASSetting.cpp index 0202a85c..7c3d82e2 100644 --- a/src/KingSystem/ActorSystem/actASSetting.cpp +++ b/src/KingSystem/ActorSystem/actASSetting.cpp @@ -16,12 +16,12 @@ void ASSetting::init(const sead::SafeString& config_path) { } // NON_MATCHING: sead::DirectResource to res::ASSetting cast nullptr check; branching for the return -const res::ASSetting::BoneParams* ASSetting::getBoneParams(const sead::SafeString& key) const { +res::ASParamParser* ASSetting::getBoneParams(const sead::SafeString& key) const { auto* res = sead::DynamicCast(mHandle.getResource()); if (!res) return nullptr; - for (const auto& bones : res->getBlenderBones()) { + for (auto& bones : res->getBlenderBones()) { if (key == bones.mKeyName.ref()) return &bones.mBoneParams; } -- cgit v1.2.3