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