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

This commit is contained in:
badlogic 2018-10-01 11:04:55 +02:00
parent 6f486a03a1
commit 9f0dea3a21

View File

@ -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;