mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[cpp] Fixes #1186, missed null check when iterating track entries.
This commit is contained in:
parent
6f486a03a1
commit
9f0dea3a21
@ -946,6 +946,8 @@ void AnimationState::animationsChanged() {
|
|||||||
for (size_t i = 0, n = _tracks.size(); i < n; ++i) {
|
for (size_t i = 0, n = _tracks.size(); i < n; ++i) {
|
||||||
TrackEntry *entry = _tracks[i];
|
TrackEntry *entry = _tracks[i];
|
||||||
|
|
||||||
|
if (!entry) continue;
|
||||||
|
|
||||||
while (entry->_mixingFrom != NULL)
|
while (entry->_mixingFrom != NULL)
|
||||||
entry = entry->_mixingFrom;
|
entry = entry->_mixingFrom;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user