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