frame count check 2 electric boogaloo

re-fix the same bug oh joy
This commit is contained in:
in1tiate 2020-03-22 07:44:01 -05:00 committed by GitHub
parent 6db808ec60
commit 530721f2d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -178,9 +178,14 @@ void AOCharMovie::movie_ticker()
// imagine if QT had sane stuff like "mirror on QMovie" or "resize the image on QT" or "interface with the current QMovie image" or anything else
this->play_frame_sfx();
if(!apng){
if (m_movie->frameCount() == 0) {
//qDebug() << "Frame count was checked again, and it's still 0";
return;
}
else if(!apng) {
ticker->start(m_movie->nextFrameDelay());
}
}
}