aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs
index 0416e3a..c055160 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.cs
@@ -2402,8 +2402,11 @@ namespace OpenSim.Region.Environment.Scenes
2402 if (regionInfo == null) 2402 if (regionInfo == null)
2403 { 2403 {
2404 regionInfo = CommsManager.GridService.RequestNeighbourInfo(UserProfile.HomeRegion); 2404 regionInfo = CommsManager.GridService.RequestNeighbourInfo(UserProfile.HomeRegion);
2405 UserProfile.HomeRegionID = regionInfo.RegionID; 2405 if(regionInfo != null) // home region can be away temporarily, too
2406 CommsManager.UserService.UpdateUserProfile(UserProfile); 2406 {
2407 UserProfile.HomeRegionID = regionInfo.RegionID;
2408 CommsManager.UserService.UpdateUserProfile(UserProfile);
2409 }
2407 } 2410 }
2408 if (regionInfo == null) 2411 if (regionInfo == null)
2409 { 2412 {