summaryrefslogtreecommitdiff
path: root/src/KingSystem/Resource/resResourceASSetting.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2021-04-11 00:49:56 +0200
committerLéo Lam <leo@leolam.fr>2021-04-11 00:50:23 +0200
commit1a5d9aba687916836806a11577bf118504fdc166 (patch)
tree92fa6cc5d1fa167d2615a1c8c8499a4554736fa2 /src/KingSystem/Resource/resResourceASSetting.cpp
parente9184e2e4106dbdfa74497ae50f645c9ae0bb80a (diff)
Fix matching issue in _ZN4ksys3res9ASSetting10BoneParams5parseERKNS0_13ASParamParser9ParseArgsE
Diffstat (limited to 'src/KingSystem/Resource/resResourceASSetting.cpp')
-rw-r--r--src/KingSystem/Resource/resResourceASSetting.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/KingSystem/Resource/resResourceASSetting.cpp b/src/KingSystem/Resource/resResourceASSetting.cpp
index b465900a..2fe40a2a 100644
--- a/src/KingSystem/Resource/resResourceASSetting.cpp
+++ b/src/KingSystem/Resource/resResourceASSetting.cpp
@@ -73,7 +73,6 @@ ASSetting::BoneParams::~BoneParams() {
mBuffer.freeBuffer();
}
-// NON_MATCHING: parameter object iteration(???)
bool ASSetting::BoneParams::parse(const ASParamParser::ParseArgs& args) {
const auto num_objects = args.res_list.getResParameterObjNum();
if (num_objects == 0)
@@ -82,12 +81,12 @@ bool ASSetting::BoneParams::parse(const ASParamParser::ParseArgs& args) {
if (!mBuffer.tryAllocBuffer(num_objects, args.heap))
return false;
- sead::FixedSafeString<32> obj_name{"BoneParam"};
- const auto obj_name_base_len = obj_name.calcLength();
-
auto it = mBuffer.begin();
const auto end = mBuffer.end();
+ sead::FixedSafeString<32> obj_name{"BoneParam"};
+ const auto obj_name_base_len = obj_name.calcLength();
+
auto res_it = args.res_list.objBegin();
const auto res_end = args.res_list.objEnd();