mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[cpp] Fix null dereference in PhysicsConstraintResetTimeline. Closes #2694
This commit is contained in:
parent
c9de3b8776
commit
43b9f6cab3
@ -95,6 +95,7 @@ void PhysicsConstraintResetTimeline::apply(Skeleton &skeleton, float lastTime, f
|
|||||||
else {
|
else {
|
||||||
Vector<PhysicsConstraint *> &physicsConstraints = skeleton.getPhysicsConstraints();
|
Vector<PhysicsConstraint *> &physicsConstraints = skeleton.getPhysicsConstraints();
|
||||||
for (size_t i = 0; i < physicsConstraints.size(); i++) {
|
for (size_t i = 0; i < physicsConstraints.size(); i++) {
|
||||||
|
constraint = physicsConstraints[i];
|
||||||
if (constraint->_active) constraint->reset();
|
if (constraint->_active) constraint->reset();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user