summaryrefslogtreecommitdiff
path: root/plugins/SmileyAdd/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-05-16 21:28:50 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-05-16 21:28:57 +0300
commit5084152e23d52311696ad488e61ca6fd13d1df55 (patch)
treec3ca5b0c77b79dcf72faf52b952259490ffefa89 /plugins/SmileyAdd/src
parent1fc8e65dd319abf0bac6ce753bb87ecbabd8b177 (diff)
SmileyAdd: reverse iterator shall be used here cause Draw() suddenly can remove a smiley from list O_O
Diffstat (limited to 'plugins/SmileyAdd/src')
-rw-r--r--plugins/SmileyAdd/src/smileys.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/SmileyAdd/src/smileys.cpp b/plugins/SmileyAdd/src/smileys.cpp
index 570b15469b..8cb83f881d 100644
--- a/plugins/SmileyAdd/src/smileys.cpp
+++ b/plugins/SmileyAdd/src/smileys.cpp
@@ -109,7 +109,7 @@ void SmileyType::MoveToNextFrame()
{
m_index = m_xepimg->SelectNextFrame(m_index);
- for (auto &it : m_arSmileys)
+ for (auto &it : m_arSmileys.rev_iter())
it->Draw();
SetFrameDelay(); // reset timer