diff options
Diffstat (limited to 'protocols')
-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
|