DIRECTOR: fix the condition of resetting stopTime

This commit is contained in:
ysj1173886760 2021-08-05 17:10:52 +08:00
parent 8bc3b3c1f1
commit dc6211dac0

View File

@ -357,7 +357,7 @@ void Channel::setClean(Sprite *nextSprite, int spriteId, bool partial) {
updateGlobalAttr();
// reset the stop time when we are not playing video
if (_stopTime && _sprite->_cast && _sprite->_cast->_type != kCastDigitalVideo)
if (_stopTime && (!_sprite->_cast || (_sprite->_cast && _sprite->_cast->_type != kCastDigitalVideo)))
_stopTime = 0;
_dirty = false;