summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llpanelprofile.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/indra/newview/llpanelprofile.cpp b/indra/newview/llpanelprofile.cpp
index d6f88047d1..5e85fa227e 100644
--- a/indra/newview/llpanelprofile.cpp
+++ b/indra/newview/llpanelprofile.cpp
@@ -161,15 +161,14 @@ void request_avatar_properties_coro(std::string cap_url, LLUUID agent_id)
avatar_data->flags |= AVATAR_ALLOW_PUBLISH;
}
- if (result["charter_member"].asBoolean())
+ avatar_data->caption_index = 0;
+ if (result.has("charter_member")) // won't be present if "caption" is set
{
- const S32 TYPE_CHARTER_MEMBER = 2;
- avatar_data->caption_index = TYPE_CHARTER_MEMBER;
+ avatar_data->caption_index = result["charter_member"].asInteger();
}
- else
+ else if (result.has("caption"))
{
- const S32 TYPE_RESIDENT = 0; // See ACCT_TYPE
- avatar_data->caption_index = TYPE_RESIDENT;
+ avatar_data->caption_text = result["caption"].asString();
}
panel = floater_profile->findChild<LLPanel>(PANEL_SECONDLIFE, TRUE);