diff options
Diffstat (limited to 'OpenSim/Region/PhysicsModules/BulletS/BSPrimLinkable.cs')
-rwxr-xr-x | OpenSim/Region/PhysicsModules/BulletS/BSPrimLinkable.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/PhysicsModules/BulletS/BSPrimLinkable.cs b/OpenSim/Region/PhysicsModules/BulletS/BSPrimLinkable.cs index 563dcfa..0d4be17 100755 --- a/OpenSim/Region/PhysicsModules/BulletS/BSPrimLinkable.cs +++ b/OpenSim/Region/PhysicsModules/BulletS/BSPrimLinkable.cs | |||
@@ -173,7 +173,8 @@ public class BSPrimLinkable : BSPrimDisplaced | |||
173 | // Body is being taken apart. Remove physical dependencies and schedule a rebuild. | 173 | // Body is being taken apart. Remove physical dependencies and schedule a rebuild. |
174 | protected override void RemoveDependencies() | 174 | protected override void RemoveDependencies() |
175 | { | 175 | { |
176 | Linkset.RemoveDependencies(this); | 176 | if (Linkset != null) |
177 | Linkset.RemoveDependencies(this); | ||
177 | base.RemoveDependencies(); | 178 | base.RemoveDependencies(); |
178 | } | 179 | } |
179 | 180 | ||