aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Scenes')
-rw-r--r--OpenSim/Region/Environment/Scenes/ScenePresence.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs
index 84ee9c4..8e5907c 100644
--- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs
@@ -750,7 +750,14 @@ namespace OpenSim.Region.Environment.Scenes
750 if ((flags & (uint) DCF) != 0) 750 if ((flags & (uint) DCF) != 0)
751 { 751 {
752 DCFlagKeyPressed = true; 752 DCFlagKeyPressed = true;
753 agent_control_v3 += Dir_Vectors[i]; 753 try
754 {
755 agent_control_v3 += Dir_Vectors[i];
756 }
757 catch (IndexOutOfRangeException)
758 {
759 // Why did I get this?
760 }
754 if ((m_movementflag & (uint) DCF) == 0) 761 if ((m_movementflag & (uint) DCF) == 0)
755 { 762 {
756 m_movementflag += (byte) (uint) DCF; 763 m_movementflag += (byte) (uint) DCF;