mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 02:05:34 +08:00
now i can login on win .net4.8, but just a little drop on a large (broken) OSD ocean. some of this changes are actually good even on good JIT. Failure seems to be on same code pattern, but same points seem to vary with each JIT compilation, sometimes work, others don't, others always fail, etc
This commit is contained in:
@@ -58,13 +58,13 @@ namespace OpenSim.Framework
|
||||
public void Unpack(OSD data)
|
||||
{
|
||||
OSDMap map = (OSDMap)data;
|
||||
|
||||
if (map.ContainsKey("InboundVersion"))
|
||||
InboundVersion = (float)map["InboundVersion"].AsReal();
|
||||
if (map.ContainsKey("OutboundVersion"))
|
||||
OutboundVersion = (float)map["OutboundVersion"].AsReal();
|
||||
if (map.ContainsKey("WearablesCount"))
|
||||
WearablesCount = map["WearablesCount"].AsInteger();
|
||||
OSD tmpOSD;
|
||||
if (map.TryGetValue("InboundVersion", out tmpOSD))
|
||||
InboundVersion = (float)tmpOSD.AsReal();
|
||||
if (map.TryGetValue("OutboundVersion", out tmpOSD))
|
||||
OutboundVersion = (float)tmpOSD.AsReal();
|
||||
if (map.TryGetValue("WearablesCount", out tmpOSD))
|
||||
WearablesCount = tmpOSD.AsInteger();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user