summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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());
}
}