Skip to content

Commit cb76a95

Browse files
committed
Fix #428: NRE in UpdateAllVesselData in sandbox mode
1 parent 2cf335e commit cb76a95

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
- Fixed usages of .material in favor of .sharedMaterial (thanks @Gameslinx)
77
- Fixed some incorrect .cfg syntax (thanks @HebaruSan)
88
- Improved Russian localization (thanks @Sooll3)
9+
- Fixed missing vessel icons and visual map mode in RPM MFDs (thanks @vulkans22)
10+
- Fixed NRE when loading a sandbox game
11+
- Fixed NRE when loading a vessel with a running narrow band scanner
912

1013

1114
## 20.4 - 2020-9-9

SCANsat/SCANutil.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,6 +1080,11 @@ internal static CelestialBody getTargetBody(MapObject target)
10801080

10811081
internal static void UpdateAllVesselData(Vessel v)
10821082
{
1083+
if (ResearchAndDevelopment.Instance == null)
1084+
{
1085+
return;
1086+
}
1087+
10831088
List<ScienceData> data = new List<ScienceData>();
10841089

10851090
var science = v.FindPartModulesImplementing<IScienceDataContainer>();

0 commit comments

Comments
 (0)