Patch login reply exploding in a fireball

This commit is contained in:
Madpeter 2021-12-06 19:25:29 +00:00
parent dbc2371fde
commit 9f2fcdedda

View file

@ -463,7 +463,12 @@ namespace OpenMetaverse
return; return;
// Home // Home
HomeRegion = 0;
HomePosition = Vector3.Zero;
HomeLookAt = Vector3.Zero;
if (reply.ContainsKey("home")) if (reply.ContainsKey("home"))
{
try
{ {
OSD osdHome = OSDParser.DeserializeLLSDNotation(reply["home"].ToString()); OSD osdHome = OSDParser.DeserializeLLSDNotation(reply["home"].ToString());
@ -486,11 +491,10 @@ namespace OpenMetaverse
HomeLookAt = ParseVector3("look_at", home); HomeLookAt = ParseVector3("look_at", home);
} }
} }
else catch (Exception e)
{ {
HomeRegion = 0; Logger.Log("Unable to unpack home location: " + e.Message, Helpers.LogLevel.Warning);
HomePosition = Vector3.Zero; }
HomeLookAt = Vector3.Zero;
} }
CircuitCode = (int)ParseUInt("circuit_code", reply); CircuitCode = (int)ParseUInt("circuit_code", reply);