From 81a00dd68f38d0f76abe85fed3c08f7d5150eb65 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Mon, 18 Feb 2008 07:22:10 +0000 Subject: * Thanks to Ahzz, more verbose error messages on the console and possibly a fix to the b*stard Sakai issue. --- OpenSim/Region/Environment/Scenes/ScenePresence.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Environment') 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 if ((flags & (uint) DCF) != 0) { DCFlagKeyPressed = true; - agent_control_v3 += Dir_Vectors[i]; + try + { + agent_control_v3 += Dir_Vectors[i]; + } + catch (IndexOutOfRangeException) + { + // Why did I get this? + } if ((m_movementflag & (uint) DCF) == 0) { m_movementflag += (byte) (uint) DCF; -- cgit v1.1