Browse Source

[c] Fixes #1282, animation state was missing a null check when iterating mixed out track entries.

badlogic 6 năm trước cách đây
mục cha
commit
9bbd2c6175

+ 1 - 0
spine-c/spine-c/src/spine/AnimationState.c

@@ -862,6 +862,7 @@ void _spAnimationState_animationsChanged (spAnimationState* self) {
 
 
 	for (;i < n; i++) {
 	for (;i < n; i++) {
 		entry = self->tracks[i];
 		entry = self->tracks[i];
+		if (!entry) continue;
 		while (entry->mixingFrom != 0)
 		while (entry->mixingFrom != 0)
 			entry = entry->mixingFrom;
 			entry = entry->mixingFrom;
 		do {
 		do {