diff options
| author | in1tiate <32779090+in1tiate@users.noreply.github.com> | 2020-03-21 18:03:12 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-21 18:03:12 -0500 |
| commit | 6db808ec606c605008393a13f7fc8be7ea2e4855 (patch) | |
| tree | 8c027fc0b802e568765b4c0d81e7fc08b0b1ee6e /src | |
| parent | ac31da6b146edfca64e8500ea113dd0e5dbae6d4 (diff) | |
If frame count is 0, don't try to play the next frame (#129)
ya goofus.
Diffstat (limited to 'src')
| -rw-r--r-- | src/aocharmovie.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/aocharmovie.cpp b/src/aocharmovie.cpp index dfd53559..efa5e8cb 100644 --- a/src/aocharmovie.cpp +++ b/src/aocharmovie.cpp @@ -53,7 +53,10 @@ void AOCharMovie::play(QString p_char, QString p_emote, QString emote_prefix) this->LoadImageWithStupidMethodForFlipSupport(m_movie->currentImage()); this->show(); this->play_frame_sfx(); - ticker->start(m_movie->nextFrameDelay()); + // if the frame count is 0 (i.e. it's a static PNG) don't try to play the next frame, ya goofus + if (m_movie->frameCount() != 0) { + ticker->start(m_movie->nextFrameDelay()); + } } void AOCharMovie::play_frame_sfx() |
