diff options
author | Adam Frisby | 2007-04-22 17:31:51 +0000 |
---|---|---|
committer | Adam Frisby | 2007-04-22 17:31:51 +0000 |
commit | 869b39c451ca1ce2dca4e651d6eada0c5b213f06 (patch) | |
tree | 0bf737e9ac76b6961a271a79069dbe745b3d9a10 /OpenSim.RegionServer/world | |
parent | === Dedicated to Jesse. === (diff) | |
download | opensim-SC_OLD-869b39c451ca1ce2dca4e651d6eada0c5b213f06.zip opensim-SC_OLD-869b39c451ca1ce2dca4e651d6eada0c5b213f06.tar.gz opensim-SC_OLD-869b39c451ca1ce2dca4e651d6eada0c5b213f06.tar.bz2 opensim-SC_OLD-869b39c451ca1ce2dca4e651d6eada0c5b213f06.tar.xz |
SimClient: Added Try/Catch over block of code which is triggering an exception that should not be triggerable. (Duplicate key after dictionary is locked, checked for key, then added) [!?!?]
AvatarUpdate: Added check for if the physics actor is null before attempting to access it.
Diffstat (limited to 'OpenSim.RegionServer/world')
-rw-r--r-- | OpenSim.RegionServer/world/AvatarUpdate.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim.RegionServer/world/AvatarUpdate.cs b/OpenSim.RegionServer/world/AvatarUpdate.cs index 6c0ace7..34d032c 100644 --- a/OpenSim.RegionServer/world/AvatarUpdate.cs +++ b/OpenSim.RegionServer/world/AvatarUpdate.cs | |||
@@ -10,6 +10,12 @@ namespace OpenSim.world | |||
10 | { | 10 | { |
11 | public override void update() | 11 | public override void update() |
12 | { | 12 | { |
13 | if (this._physActor == null) | ||
14 | { | ||
15 | //HACKHACK: Note to work out why this entity does not have a physics actor | ||
16 | // and prehaps create one. | ||
17 | return; | ||
18 | } | ||
13 | libsecondlife.LLVector3 pos2 = new LLVector3(this._physActor.Position.X, this._physActor.Position.Y, this._physActor.Position.Z); | 19 | libsecondlife.LLVector3 pos2 = new LLVector3(this._physActor.Position.X, this._physActor.Position.Y, this._physActor.Position.Z); |
14 | if (this.updateflag) | 20 | if (this.updateflag) |
15 | { | 21 | { |