From ecaa16016a917e7dc17f29031c06d602392d9df2 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 6 Nov 2026 13:37:44 +0000 Subject: [PATCH] Decompile fn_08006 (C3dGrannyModelRes::RebindMeshes) Batch #13344 by SapitoSucio: 1 byte-identical, 0 confirmed by peer review. - fn_08006 C3dGrannyModelRes::RebindMeshes: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/Resource/Models/ModelResource.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Resource/Models/ModelResource.cpp b/Source/Resource/Models/ModelResource.cpp index c8efb353..84e3a63b 100644 --- a/Source/Resource/Models/ModelResource.cpp +++ b/Source/Resource/Models/ModelResource.cpp @@ -363,8 +363,9 @@ bool C3dModelResV1::Load(const char* name) { // OFFSET: 0x007577E0 // FUNCTION: fn_08006 void C3dGrannyModelRes::RebindMeshes(const C3dGrannyModelRes& target) { + GrannyModelInstance* instance = this->instance; for (int index = 0; index < this->instance->meshCount; ++index) { - GrannyMeshEntry& entry = this->instance->meshes[index]; + GrannyMeshEntry& entry = instance->meshes[index]; GrannyFreeMeshBinding(entry.binding); entry.binding = GrannyNewMeshBinding(entry.mesh, this->skeleton, target.skeleton); }