aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/OpenSimMain.cs13
1 files changed, 9 insertions, 4 deletions
diff --git a/OpenSim/OpenSimMain.cs b/OpenSim/OpenSimMain.cs
index 0b614f8..e90ad54 100644
--- a/OpenSim/OpenSimMain.cs
+++ b/OpenSim/OpenSimMain.cs
@@ -277,11 +277,16 @@ namespace OpenSim
277 agent_data.circuitcode = Convert.ToUInt32(requestData["circuit_code"]); 277 agent_data.circuitcode = Convert.ToUInt32(requestData["circuit_code"]);
278 agent_data.startpos = new LLVector3(Single.Parse((string)requestData["pos_x"]), Single.Parse((string)requestData["pos_y"]), Single.Parse((string)requestData["pos_z"])); 278 agent_data.startpos = new LLVector3(Single.Parse((string)requestData["pos_x"]), Single.Parse((string)requestData["pos_y"]), Single.Parse((string)requestData["pos_z"]));
279 279
280 if (((RemoteGridBase)this.GridServers.GridServer).agentcircuits.ContainsKey((uint)agent_data.circuitcode)) 280 uint circuitcode = (uint)agent_data.circuitcode;
281 RemoteGridBase gridServer = (RemoteGridBase)this.GridServers.GridServer;
282
283 AgentCircuitData agentCircuit;
284
285 if (gridServer.agentcircuits.TryGetValue(circuitcode, out agentCircuit))
281 { 286 {
282 ((RemoteGridBase)this.GridServers.GridServer).agentcircuits[(uint)agent_data.circuitcode].firstname = agent_data.firstname; 287 agentCircuit.firstname = agent_data.firstname;
283 ((RemoteGridBase)this.GridServers.GridServer).agentcircuits[(uint)agent_data.circuitcode].lastname = agent_data.lastname; 288 agentCircuit.lastname = agent_data.lastname;
284 ((RemoteGridBase)this.GridServers.GridServer).agentcircuits[(uint)agent_data.circuitcode].startpos = agent_data.startpos; 289 agentCircuit.startpos = agent_data.startpos;
285 } 290 }
286 291
287 return new XmlRpcResponse(); 292 return new XmlRpcResponse();