Browse Source

[cpp] Fixes #1186, missed null check when iterating track entries.

badlogic 7 years ago
parent
commit
9f0dea3a21
1 changed files with 2 additions and 0 deletions
  1. 2 0
      spine-cpp/spine-cpp/src/spine/AnimationState.cpp

+ 2 - 0
spine-cpp/spine-cpp/src/spine/AnimationState.cpp

@@ -946,6 +946,8 @@ void AnimationState::animationsChanged() {
 	for (size_t i = 0, n = _tracks.size(); i < n; ++i) {
 		TrackEntry *entry = _tracks[i];
 
+		if (!entry) continue;
+
 		while (entry->_mixingFrom != NULL)
 			entry = entry->_mixingFrom;