diff options
| author | Crystalwarrior <varsash@gmail.com> | 2020-01-15 16:06:27 +0300 |
|---|---|---|
| committer | Crystalwarrior <varsash@gmail.com> | 2020-01-15 16:06:27 +0300 |
| commit | f30013f7f9d9ecb840948b99663e8b1e81a6971c (patch) | |
| tree | 83640f96d86fa925a62a1a5fa8af6b79a05dc25b /src/aocharmovie.cpp | |
| parent | 8791109c6609e9b188b74f3b879501081312dab8 (diff) | |
i am REtArd
Fixed a major bug that crashed the clients on chatting + broke a lot of assets because of a single `.` boi anywhere in the filepath.
Diffstat (limited to 'src/aocharmovie.cpp')
| -rw-r--r-- | src/aocharmovie.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/aocharmovie.cpp b/src/aocharmovie.cpp index 9bbb8761..0ce5c868 100644 --- a/src/aocharmovie.cpp +++ b/src/aocharmovie.cpp @@ -50,6 +50,9 @@ void AOCharMovie::load_image(QString p_char, QString p_emote, QString emote_pref movie_delays.clear(); movie_effects.clear(); + if (!file_exists(emote_path)) + return; + m_reader->setFileName(emote_path); QPixmap f_pixmap = this->get_pixmap(m_reader->read()); int f_delay = m_reader->nextImageDelay(); |
