Sanity checks, bugfixes, crashfixes, and misc tweaks snagged from snowglobe.
This commit is contained in:
@@ -53,7 +53,13 @@ LLAgentLanguage::LLAgentLanguage()
|
||||
bool LLAgentLanguage::update()
|
||||
{
|
||||
LLSD body;
|
||||
std::string url = gAgent.getRegion()->getCapability("UpdateAgentLanguage");
|
||||
std::string url;
|
||||
|
||||
if (gAgent.getRegion())
|
||||
{
|
||||
url = gAgent.getRegion()->getCapability("UpdateAgentLanguage");
|
||||
}
|
||||
|
||||
if (!url.empty())
|
||||
{
|
||||
std::string language = LLUI::getLanguage();
|
||||
|
||||
Reference in New Issue
Block a user