lib: Update sead

This commit is contained in:
Léo Lam 2021-06-28 18:50:47 +02:00
parent 23a84ada5a
commit 98f3c3d971
No known key found for this signature in database
GPG Key ID: 0DF30F9081000741
2 changed files with 3 additions and 3 deletions

@ -1 +1 @@
Subproject commit a690e3c6bcf7c731856d871f5aa8f08a8e94f2ce
Subproject commit 0367e0ef1726f670c24c69d13cc2ce079ee02693

View File

@ -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();