diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2016-03-09 11:34:08 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2016-03-09 11:34:08 +0000 |
commit | 7a715be283da2fd349d12b76551f43d6567dab2e (patch) | |
tree | a19e90aad4896cb83478d09d717389312b57b01c /protocols/VKontakte/src | |
parent | fdb344552ed7d15047dbce5538f26730cf383a7b (diff) |
VKontakte: small fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@16452 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src')
-rw-r--r-- | protocols/VKontakte/src/vk_thread.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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
|