aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/kowopenregionsettings.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-11-01 21:31:33 -0700
committerMcCabe Maxsted2010-11-01 21:31:33 -0700
commitb9867ca9e51b273bbd298d7a1ca5f893d5c3b219 (patch)
tree2366aca4cb8bd5147c0c3c8e3746782184f8ecf0 /linden/indra/newview/kowopenregionsettings.cpp
parentDon't allow setting draw distance below 0 in the openregionsettings (diff)
downloadmeta-impy-b9867ca9e51b273bbd298d7a1ca5f893d5c3b219.zip
meta-impy-b9867ca9e51b273bbd298d7a1ca5f893d5c3b219.tar.gz
meta-impy-b9867ca9e51b273bbd298d7a1ca5f893d5c3b219.tar.bz2
meta-impy-b9867ca9e51b273bbd298d7a1ca5f893d5c3b219.tar.xz
Fixed crash when logging into an Aurora sim without the region/estate window open
Diffstat (limited to 'linden/indra/newview/kowopenregionsettings.cpp')
-rw-r--r--linden/indra/newview/kowopenregionsettings.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/linden/indra/newview/kowopenregionsettings.cpp b/linden/indra/newview/kowopenregionsettings.cpp
index f5a845a..86a426c 100644
--- a/linden/indra/newview/kowopenregionsettings.cpp
+++ b/linden/indra/newview/kowopenregionsettings.cpp
@@ -47,7 +47,7 @@ class OpenRegionInfoUpdate : public LLHTTPNode
47 const LLSD& context, 47 const LLSD& context,
48 const LLSD& input) const 48 const LLSD& input) const
49 { 49 {
50 if (!input.isMap() || !input.has("body")) 50 if (!input || !context || !input.isMap() || !input.has("body"))
51 { 51 {
52 llinfos << "malformed OpenRegionInfo update!" << llendl; 52 llinfos << "malformed OpenRegionInfo update!" << llendl;
53 return; 53 return;
@@ -205,10 +205,9 @@ class OpenRegionInfoUpdate : public LLHTTPNode
205 gFloaterTools->updateToolsSizeLimits(); 205 gFloaterTools->updateToolsSizeLimits();
206 206
207 //Update the floater if its around 207 //Update the floater if its around
208 LLPanelRegionOpenSettingsInfo* floater; 208 LLPanelRegionOpenSettingsInfo* floater = LLFloaterRegionInfo::getPanelOpenSettings();
209 floater = LLFloaterRegionInfo::getPanelOpenSettings();
210 209
211 if(floater != NULL) 210 if (floater != NULL)
212 { 211 {
213 floater->refreshFromRegion(gAgent.getRegion()); 212 floater->refreshFromRegion(gAgent.getRegion());
214 } 213 }