Skip to content

Commit

Permalink
Check valid vessel before checking if vessel body has ocean
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanKell committed Nov 14, 2015
1 parent 0409957 commit 876f75f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified GameData/SolverEngines/Plugins/SolverEngines.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion SolverEngines/EngineModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ virtual public bool CanAutoRestart()

new protected bool CheckTransformsUnderwater()
{
if (!vessel.mainBody.ocean)
if (!vessel || !vessel.mainBody.ocean)
return false;

for (int i = 0; i < thrustTransforms.Count; i++)
Expand Down

0 comments on commit 876f75f

Please sign in to comment.