From 7a715be283da2fd349d12b76551f43d6567dab2e Mon Sep 17 00:00:00 2001 From: Sergey Bolhovskoy Date: Wed, 9 Mar 2016 11:34:08 +0000 Subject: VKontakte: small fix git-svn-id: http://svn.miranda-ng.org/main/trunk@16452 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/VKontakte/src/vk_thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocols/VKontakte/src/vk_thread.cpp b/protocols/VKontakte/src/vk_thread.cpp index 284ac34d2e..45f9862ff6 100644 --- a/protocols/VKontakte/src/vk_thread.cpp +++ b/protocols/VKontakte/src/vk_thread.cpp @@ -398,7 +398,7 @@ MCONTACT CVkProto::SetContactInfo(const JSONNode &jnItem, bool flag, bool self) TranslateT("in love") }; - if (jnItem["relation"] && jnItem["relation"].as_int()) + if (jnItem["relation"] && jnItem["relation"].as_int() < _countof(ptszMaritalStatus)) setTString(hContact, "MaritalStatus", ptszMaritalStatus[jnItem["relation"].as_int()]); // interests, activities, music, movies, tv, books, games, quotes -- cgit v1.2.3