Skip to content

Commit

Permalink
Fixed another nullref when entering game
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxgurugamer committed Jan 12, 2023
1 parent fb2ac76 commit 1fe3e90
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 4 deletions.
3 changes: 3 additions & 0 deletions Changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
ChangeLog

2.1.20.21 (unreleased)
Fixed another nullref when starting game

2.1.10.20
Fixed nullref when entering game

Expand Down
4 changes: 2 additions & 2 deletions ClickThroughBlocker/AssemblyVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

using System.Reflection;

[assembly: AssemblyVersion("2.1.10.19")]
[assembly: AssemblyFileVersion("2.1.10.19")]
[assembly: AssemblyVersion("2.1.10.21")]
[assembly: AssemblyFileVersion("2.1.10.21")]
[assembly: KSPAssembly("ClickThroughBlocker", 2, 1, 0)]
2 changes: 1 addition & 1 deletion ClickThroughBlocker/RegisterToolbar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ void Start()
}
void OnGameSettingsWritten()
{
if (HighLogic.CurrentGame.Parameters.CustomParams<CTB>().global)
if (HighLogic.CurrentGame != null && HighLogic.CurrentGame.Parameters.CustomParams<CTB>().global)
OneTimePopup.SaveGlobalDefault (HighLogic.CurrentGame.Parameters.CustomParams<CTB>().focusFollowsclick);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"MAJOR": 2,
"MINOR": 1,
"PATCH": 10,
"BUILD": 19
"BUILD": 21
},
"KSP_VERSION_MIN": {
"MAJOR": 1,
Expand Down
10 changes: 10 additions & 0 deletions GameData/000_ClickThroughBlocker/changelog.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ KERBALCHANGELOG
license = Lesser GPLv3
author = Linuxgurugamer

VERSION
{
version = 2.1.10.20
CHANGE
{
change = Fixed nullref when entering game

type = update
}
}


VERSION
Expand Down
10 changes: 10 additions & 0 deletions changelog.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ KERBALCHANGELOG
license = Lesser GPLv3
author = Linuxgurugamer

VERSION
{
version = 2.1.10.22
CHANGE
{
change = Fixed another nullref when entering game

type = update
}
}
VERSION
{
version = 2.1.10.20
Expand Down

0 comments on commit 1fe3e90

Please sign in to comment.