summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-12-30 22:16:14 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-12-30 22:16:14 +0000
commitb608500c9f46cf2c430037b595883dfcb8b25482 (patch)
treec329bd1da30f67ce9d444745275ea53f7ecc7278
parent23ffd722eb50ed6685229cb2bb83a14ad2fbbc30 (diff)
crash fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@11685 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--src/modules/extraicons/ExtraIconGroup.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/extraicons/ExtraIconGroup.cpp b/src/modules/extraicons/ExtraIconGroup.cpp
index 1cc7d43c18..bbca7b66e3 100644
--- a/src/modules/extraicons/ExtraIconGroup.cpp
+++ b/src/modules/extraicons/ExtraIconGroup.cpp
@@ -181,7 +181,7 @@ int ExtraIconGroup::internalSetIcon(int id, MCONTACT hContact, void *value, bool
insideApply = false;
- if (setValidExtraIcon)
+ if (setValidExtraIcon && storePos < items.getCount())
db_set_dw(hContact, MODULE_NAME, szName, items[storePos]->getID());
}
}