From e9f047b9af871b7b3a0318c4318e58f828aeff4c Mon Sep 17 00:00:00 2001 From: amevarashi Date: Sun, 10 Dec 2023 15:47:57 +0500 Subject: [PATCH] Fixed null error when switching to partner's history --- Source/RJWSexperience/SexHistory/UI/SexStatusWindow.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/RJWSexperience/SexHistory/UI/SexStatusWindow.cs b/Source/RJWSexperience/SexHistory/UI/SexStatusWindow.cs index 9d46d66..6aee41c 100644 --- a/Source/RJWSexperience/SexHistory/UI/SexStatusWindow.cs +++ b/Source/RJWSexperience/SexHistory/UI/SexStatusWindow.cs @@ -118,6 +118,7 @@ namespace RJWSexperience.SexHistory.UI { Find.Selector.ClearSelection(); _context = new SexStatusViewModel(history, orderMode); + _context.Update(); if (!_context.Pawn.DestroyedOrNull() && Find.CurrentMap == _context.Pawn.Map) { Find.Selector.Select(_context.Pawn);