Skip to content

Commit

Permalink
Fix NRE when clearing loaded craft
Browse files Browse the repository at this point in the history
  • Loading branch information
taniwha committed Aug 27, 2020
1 parent ae90718 commit 88ab6f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/GUI/BuildWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,10 @@ void WindowGUI (int windowID)
break;
case ELBuildControl.State.Planning:
SelectCraft ();
if (control.state != ELBuildControl.State.Planning) {
// the loaded craft was cleared
break;
}
SelectedCraft ();
if (control.lockedParts) {
resScroll.Begin ();
Expand Down

0 comments on commit 88ab6f3

Please sign in to comment.