summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKiritoDv <kiritodev01@gmail.com>2024-03-10 19:52:26 -0600
committerKiritoDv <kiritodev01@gmail.com>2024-03-10 19:52:26 -0600
commit9e2e7f90abb05acea217c9dc575ecd33b0f38680 (patch)
tree280f8794ca092700c1f31476aefb45db2236a717 /src
parentd90bdcaf912d51e14a660c56af8727da1a0819bf (diff)
Fixed error validation on sf64 anims
Diffstat (limited to 'src')
-rw-r--r--src/factories/sf64/AnimFactory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/factories/sf64/AnimFactory.cpp b/src/factories/sf64/AnimFactory.cpp
index a57f1f2..f145f5e 100644
--- a/src/factories/sf64/AnimFactory.cpp
+++ b/src/factories/sf64/AnimFactory.cpp
@@ -11,7 +11,7 @@ SF64::AnimData::AnimData(int16_t frameCount, int16_t limbCount, uint32_t dataOff
if((mDataOffset + sizeof(mFrameData) > mKeyOffset) && (mKeyOffset + sizeof(mJointKeys) > mDataOffset)) {
throw std::runtime_error("Data and Key offsets overlap");
}
- if(mJointKeys.size() != limbCount) {
+ if(mJointKeys.size() != limbCount + 1) {
throw std::runtime_error("Joint Key count does not match Limb count");
}
}