Skip to content

Commit 6323f94

Browse files
Fixed nullref during game startup
1 parent 49de33a commit 6323f94

File tree

6 files changed

+10
-3
lines changed

6 files changed

+10
-3
lines changed
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.3
2+
Fixed nullref during game startup
3+
14
0.1.2
25
Fixed issue with stock toolbar not changing textures
36
Replaced Debug.Log with logging class to reduce log spam

GameData/000_Toolbar/ToolbarControl.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
{
1212
"MAJOR" : 0,
1313
"MINOR" : 1,
14-
"PATCH" : 2,
14+
"PATCH" : 3,
1515
"BUILD" : 0
1616
}
1717
}

ToolbarControl.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
{
1212
"MAJOR" : 0,
1313
"MINOR" : 1,
14-
"PATCH" : 2,
14+
"PATCH" : 3,
1515
"BUILD" : 0
1616
}
1717
}

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.2.0")]
8+
[assembly: AssemblyVersion("0.1.3.0")]

ToolbarControl/ToolbarControl.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,17 @@ private void SetIsEnabled(bool b)
7979
isEnabled = b;
8080
if (activeToolbarType == ToolBarSelected.stock)
8181
{
82+
if (this.stockButton == null)
83+
return;
8284
if (b)
8385
this.stockButton.Enable();
8486
else
8587
this.stockButton.Disable();
8688
}
8789
if (activeToolbarType == ToolBarSelected.blizzy)
8890
{
91+
if (blizzyButton == null)
92+
return;
8993
this.blizzyButton.Enabled = b;
9094
}
9195
}

0 commit comments

Comments
 (0)