avoid a null ref on Bullet

0.9.1.0-post-fixes
UbitUmarov 2018-11-15 22:17:44 +00:00
parent 9234613ed5
commit d43eeb1d9d
1 changed files with 2 additions and 1 deletions

View File

@ -173,6 +173,7 @@ public class BSPrimLinkable : BSPrimDisplaced
// Body is being taken apart. Remove physical dependencies and schedule a rebuild. // Body is being taken apart. Remove physical dependencies and schedule a rebuild.
protected override void RemoveDependencies() protected override void RemoveDependencies()
{ {
if (Linkset != null)
Linkset.RemoveDependencies(this); Linkset.RemoveDependencies(this);
base.RemoveDependencies(); base.RemoveDependencies();
} }