Skip to content

Commit d443b83

Browse files
committed
Tag 0.8.2 release
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/tags/0.8.2@3392 52acb1d6-8a22-11de-b505-999d5b087335
2 parents a4c0e91 + 473b667 commit d443b83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

OpenMetaverse/AgentManagerMovement.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ public void SendUpdate(bool reliable, Simulator simulator)
590590
{
591591
// Since version 1.40.4 of the Linden simulator, sending this update
592592
// causes corruption of the agent position in the simulator
593-
if (!simulator.HandshakeComplete)
593+
if (simulator != null && (!simulator.HandshakeComplete))
594594
return;
595595

596596
Vector3 origin = Camera.Position;
@@ -675,7 +675,7 @@ public void SendManualUpdate(AgentManager.ControlFlags controlFlags, Vector3 pos
675675
{
676676
// Since version 1.40.4 of the Linden simulator, sending this update
677677
// causes corruption of the agent position in the simulator
678-
if (!Client.Network.CurrentSim.HandshakeComplete)
678+
if (Client.Network.CurrentSim != null && (!Client.Network.CurrentSim.HandshakeComplete))
679679
return;
680680

681681
AgentUpdatePacket update = new AgentUpdatePacket();

0 commit comments

Comments
 (0)