\r
void Grid_OnCoarseLocationUpdate(Simulator sim, List<UUID> newEntries, List<UUID> removedEntries)\r
{\r
- if (client.Network.CurrentSim.ID != sim.ID || !sim.AvatarPositions.ContainsKey(client.Self.AgentID))\r
+ if (client.Network.CurrentSim.ID != sim.ID)\r
{\r
return;\r
}\r
lvwObjects.BeginUpdate();\r
try\r
{\r
- Vector3 mypos = sim.AvatarPositions[client.Self.AgentID];\r
+ Vector3 mypos = sim.AvatarPositions.ContainsKey(client.Self.AgentID)\r
+ ? sim.AvatarPositions[client.Self.AgentID]\r
+ : client.Self.SimPosition;\r
+\r
List<UUID> existing = new List<UUID>();\r
List<UUID> removed = new List<UUID>();\r
\r