summaryrefslogtreecommitdiff
path: root/plugins/SmileyAdd/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/SmileyAdd/src')
-rw-r--r--plugins/SmileyAdd/src/imagecache.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/SmileyAdd/src/imagecache.cpp b/plugins/SmileyAdd/src/imagecache.cpp
index aa20f59a70..8f4ea9fe4c 100644
--- a/plugins/SmileyAdd/src/imagecache.cpp
+++ b/plugins/SmileyAdd/src/imagecache.cpp
@@ -382,7 +382,8 @@ void ImageType::DrawInternal(HDC hdc, int x, int y, int sizeX, int sizeY)
int ImageType::GetFrameDelay(void) const
{
- return ((long*)m_pPropertyItem->value)[m_nCurrentFrame];
+ int Del = ((long*)m_pPropertyItem->value)[m_nCurrentFrame];
+ return (Del ? Del : 5);
}
HICON ImageType::GetIcon(void)