Skip to content

Commit 1fe3e90

Browse files
Fixed another nullref when entering game
1 parent fb2ac76 commit 1fe3e90

File tree

6 files changed

+27
-4
lines changed

6 files changed

+27
-4
lines changed

Changelog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
ChangeLog
22

3+
2.1.20.21 (unreleased)
4+
Fixed another nullref when starting game
5+
36
2.1.10.20
47
Fixed nullref when entering game
58

ClickThroughBlocker/AssemblyVersion.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55

66
using System.Reflection;
77

8-
[assembly: AssemblyVersion("2.1.10.19")]
9-
[assembly: AssemblyFileVersion("2.1.10.19")]
8+
[assembly: AssemblyVersion("2.1.10.21")]
9+
[assembly: AssemblyFileVersion("2.1.10.21")]
1010
[assembly: KSPAssembly("ClickThroughBlocker", 2, 1, 0)]

ClickThroughBlocker/RegisterToolbar.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ void Start()
1818
}
1919
void OnGameSettingsWritten()
2020
{
21-
if (HighLogic.CurrentGame.Parameters.CustomParams<CTB>().global)
21+
if (HighLogic.CurrentGame != null && HighLogic.CurrentGame.Parameters.CustomParams<CTB>().global)
2222
OneTimePopup.SaveGlobalDefault (HighLogic.CurrentGame.Parameters.CustomParams<CTB>().focusFollowsclick);
2323
}
2424

GameData/000_ClickThroughBlocker/ClickThroughBlocker.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"MAJOR": 2,
1111
"MINOR": 1,
1212
"PATCH": 10,
13-
"BUILD": 19
13+
"BUILD": 21
1414
},
1515
"KSP_VERSION_MIN": {
1616
"MAJOR": 1,

GameData/000_ClickThroughBlocker/changelog.cfg

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ KERBALCHANGELOG
55
license = Lesser GPLv3
66
author = Linuxgurugamer
77

8+
VERSION
9+
{
10+
version = 2.1.10.20
11+
CHANGE
12+
{
13+
change = Fixed nullref when entering game
14+
15+
type = update
16+
}
17+
}
818

919

1020
VERSION

changelog.cfg

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ KERBALCHANGELOG
55
license = Lesser GPLv3
66
author = Linuxgurugamer
77

8+
VERSION
9+
{
10+
version = 2.1.10.22
11+
CHANGE
12+
{
13+
change = Fixed another nullref when entering game
14+
15+
type = update
16+
}
17+
}
818
VERSION
919
{
1020
version = 2.1.10.20

0 commit comments

Comments
 (0)