summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorMnikolenko ProductEngine <mnikolenko@productengine.com>2016-02-02 12:21:01 +0200
committerMnikolenko ProductEngine <mnikolenko@productengine.com>2016-02-02 12:21:01 +0200
commita849d82520fbb59153c5de0d5e35d7ea008d2f04 (patch)
tree81e4bab484991bed9dceda2779513683679cb7cb /indra
parent10c76ee505948d5d9f731d1fdd680dd830fc4ff1 (diff)
MAINT-5667 FIXED When attempting to check the top scripts, the parcel names would not load in the top scripts console.
Diffstat (limited to 'indra')
-rwxr-xr-xindra/newview/llfloatertopobjects.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/indra/newview/llfloatertopobjects.cpp b/indra/newview/llfloatertopobjects.cpp
index f8681fe098..e20360066e 100755
--- a/indra/newview/llfloatertopobjects.cpp
+++ b/indra/newview/llfloatertopobjects.cpp
@@ -183,10 +183,15 @@ void LLFloaterTopObjects::handleReply(LLMessageSystem *msg, void** data)
msg->getU32("DataExtended", "TimeStamp", time_stamp, block);
msg->getF32("DataExtended", "MonoScore", mono_score, block);
msg->getS32("DataExtended", "PublicURLs", public_urls, block);
- if (msg->getSize("DataExtended", "ParcelName") > 0)
+
+ std::string parcel_name;
+ F32 script_size = 0.f;
+ msg->getString("DataExtended", "ParcelName", parcel_name, block);
+ msg->getF32("DataExtended", "Size", script_size, block);
+ if (parcel_name.size() > 0 || script_size > 0)
{
- msg->getString("DataExtended", "ParcelName", parcel_buf, block);
- msg->getF32("DataExtended", "Size", script_memory, block);
+ parcel_buf = parcel_name;
+ script_memory = script_size;
}
}