Skip to content

Commit fb2ac76

Browse files
Fixed nullref when entering game
1 parent 811693e commit fb2ac76

File tree

8 files changed

+30
-6
lines changed

8 files changed

+30
-6
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.10.20
4+
Fixed nullref when entering game
5+
36
2.1.10.19
47
Fixed issue where changing the FocusFollowsClick in the settings wasn't being saved properly
58
Fixed issue where changing the global setting in the settings wasn't being honored

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": 20
1414
},
1515
"KSP_VERSION_MIN": {
1616
"MAJOR": 1,

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.18")]
9-
[assembly: AssemblyFileVersion("2.1.10.18")]
8+
[assembly: AssemblyVersion("2.1.10.19")]
9+
[assembly: AssemblyFileVersion("2.1.10.19")]
1010
[assembly: KSPAssembly("ClickThroughBlocker", 2, 1, 0)]

ClickThroughBlocker/OneTimePopup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ static internal bool GetGlobalDefault(ref bool b)
151151
{
152152
if (System.IO.File.Exists(GlobalDefaultFile))
153153
{
154-
if (HighLogic.CurrentGame.Parameters.CustomParams<CTB>().global)
154+
if (HighLogic.CurrentGame == null || HighLogic.CurrentGame.Parameters.CustomParams<CTB>().global)
155155
{
156156
ConfigNode node = ConfigNode.Load(GlobalDefaultFile);
157157
if (node.TryGetValue("focusFollowsClick", ref b))

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": 18
13+
"BUILD": 19
1414
},
1515
"KSP_VERSION_MIN": {
1616
"MAJOR": 1,

GameData/000_ClickThroughBlocker/changelog.cfg

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,17 @@ KERBALCHANGELOG
77

88

99

10+
VERSION
11+
{
12+
version = 2.1.10.19
13+
CHANGE
14+
{
15+
change = Fixed issue where changing the FocusFollowsClick in the settings wasn't being saved properly
16+
change = Fixed issue where changing the global setting in the settings wasn't being honored
17+
18+
type = update
19+
}
20+
}
1021
VERSION
1122
{
1223
version = 2.1.10.18

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

deploy.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ rem but not always
99

1010
set H=%KSPDIR%
1111

12-
set H=R:\KSP_1.12.4
12+
rem set H=R:\KSP_1.12.4
1313

1414
set GAMEDIR=000_ClickThroughBlocker
1515
set GAMEDATA=GameData

0 commit comments

Comments
 (0)