diff --git a/lib/sead b/lib/sead index a690e3c6..0367e0ef 160000 --- a/lib/sead +++ b/lib/sead @@ -1 +1 @@ -Subproject commit a690e3c6bcf7c731856d871f5aa8f08a8e94f2ce +Subproject commit 0367e0ef1726f670c24c69d13cc2ce079ee02693 diff --git a/src/KingSystem/Resource/Actor/resResourceRagdollBlendWeight.cpp b/src/KingSystem/Resource/Actor/resResourceRagdollBlendWeight.cpp index 07aec2d7..1a602f31 100644 --- a/src/KingSystem/Resource/Actor/resResourceRagdollBlendWeight.cpp +++ b/src/KingSystem/Resource/Actor/resResourceRagdollBlendWeight.cpp @@ -15,7 +15,7 @@ bool RagdollBlendWeight::parse_(u8* data, size_t size, sead::Heap* heap) { const auto num_states = root.getResParameterListNum(); if (num_states != 0) { - mStates.allocBufferAssert(num_states, heap); + mStates.tryAllocBuffer(num_states, heap); int state_idx = 1; for (auto it = mStates.begin(), end = mStates.end(); it != end; ++it) { @@ -31,7 +31,7 @@ bool RagdollBlendWeight::parse_(u8* data, size_t size, sead::Heap* heap) { if (int num_weights; InputWeightList && (num_weights = InputWeightList.getResParameterObjNum()) != 0) { - it->input_weights.allocBufferAssert(num_weights, heap); + it->input_weights.tryAllocBuffer(num_weights, heap); int weight_idx = 1; for (auto wit = it->input_weights.begin(), wend = it->input_weights.end();