Skip to content

Commit

Permalink
Fix possible exception in ModuleROTank.OnFixedUpdate
Browse files Browse the repository at this point in the history
Closes #18
  • Loading branch information
siimav committed Jul 29, 2023
1 parent 880ab98 commit b251a49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/ROLib/Modules/ModuleROTank_KorolevCross.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ private void CreateJoint()

public override void OnFixedUpdate()
{
if (!isFinished && decoupler.isDecoupled)
if (!isFinished && decoupler != null && decoupler.isDecoupled)
{
float mass = GetPartDryMassRecursive(part);

Expand Down

0 comments on commit b251a49

Please sign in to comment.