Skip to content

Commit 88b7c30

Browse files
authored
Merge pull request blowfishpro#207 from net-lisias-kspu/pullrequests/to/upstream/2021-0219-TweakScaleIssue168
2 parents 3ec959f + 712d8ad commit 88b7c30

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

B9PartSwitch/PartSwitch/ModuleB9PartInfo.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ private void Start()
5252
GameEvents.onEditorShipModified.Add(EditorShipModified);
5353
}
5454

55+
private void OnDestroy()
56+
{
57+
GameEvents.onEditorShipModified.Remove(EditorShipModified);
58+
}
59+
5560
private void EditorShipModified(ShipConstruct construct)
5661
{
5762
SetupGUI();

0 commit comments

Comments
 (0)