Skip to content

Commit 9a297ab

Browse files
Fixed harmless nullref which was occuring in a very few mods at initialization
1 parent 43e949d commit 9a297ab

File tree

7 files changed

+7
-4
lines changed

7 files changed

+7
-4
lines changed
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
0.1.6.16
2+
Fixed harmless nullref which was occuring in a very few mods at initialization
3+
14
0.1.6.15
25
Thanks to github user @piezpiedpy and @mwerle for this fix to a very subtle problem:
36
Intro window can be blank and the log spammed with errors, doesn't heppen often, mainly in a debug mode

GameData/001_ToolbarControl/ToolbarControl.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"MAJOR" : 0,
1313
"MINOR" : 1,
1414
"PATCH" : 6,
15-
"BUILD" : 15
15+
"BUILD" : 16
1616
},
1717
"KSP_VERSION":
1818
{

ToolbarControl.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"MAJOR" : 0,
1313
"MINOR" : 1,
1414
"PATCH" : 6,
15-
"BUILD" : 15
15+
"BUILD" : 16
1616
},
1717
"KSP_VERSION":
1818
{

ToolbarControl/AssemblyVersion.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55

66
using System.Reflection;
77

8-
[assembly: AssemblyVersion("0.1.6.15")]
8+
[assembly: AssemblyVersion("0.1.6.16")]

ToolbarControl/ToolbarControl.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,7 @@ public void SetFalse(bool makeCall = false)
10361036
return;
10371037
doSetFalse = false;
10381038

1039-
if (stockActive)
1039+
if (stockButton != null && stockActive)
10401040
{
10411041
stockButton.SetFalse(makeCall);
10421042
makeCall = false;

0 commit comments

Comments
 (0)