From b608500c9f46cf2c430037b595883dfcb8b25482 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 30 Dec 2014 22:16:14 +0000 Subject: crash fix git-svn-id: http://svn.miranda-ng.org/main/trunk@11685 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/extraicons/ExtraIconGroup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules') 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()); } } -- cgit v1.2.3