Skip to content

Commit 82b3f5f

Browse files
committed
Fix #161: NRE when switching vessels
1 parent c6e7a43 commit 82b3f5f

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Please always post your [KSP.log file](https://gist.github.com/JonnyOThan/04c207
1010
- Add RPMComputer modules to a few B9 Aerospace parts that were missing them
1111
- Disabled some propbatching when MAS is installed because it interferes with their patches
1212
- Fix NRE in ExternalCameraSelector when the camera transform is missing
13+
- Fix possible NRE when changing vessels
14+
1315

1416
## 1.0.2 - 2024-09-24
1517

RasterPropMonitor/Core/RPMVesselComputer.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1301,6 +1301,7 @@ private void onVesselChange(Vessel who)
13011301
// way, the next FixedUpdate will trigger another update after
13021302
// navBall is ready.
13031303
timeToUpdate = true;
1304+
InvalidateModuleLists();
13041305
UpdateVariables();
13051306
// Re-trigger the update for the next FixedUpdate.
13061307
timeToUpdate = true;

0 commit comments

Comments
 (0)