RimWorld

RimWorld

What's for sale?
Alan Dec 15, 2023 @ 11:38am
Randomly breaks mid playthrough
Pressing the "What's for sale" button under any faction base on the map floods the dev console with

Exception filling window for WDYS.Dialog_ShowBuyable: System.NullReferenceException: Object reference not set to an instance of an object
at Verse.Widgets.GetIconFor (Verse.Thing thing, UnityEngine.Vector2 size, System.Nullable`1[T] rot, System.Boolean stackOfOne, System.Single& scale, System.Single& angle, UnityEngine.Vector2& iconProportions, UnityEngine.Color& color) [0x0001a] in <cd7169108ea74757aa50c5b33d275c15>:0
at Verse.Widgets.ThingIcon (UnityEngine.Rect rect, Verse.Thing thing, System.Single alpha, System.Nullable`1[T] rot, System.Boolean stackOfOne) [0x0001c] in <cd7169108ea74757aa50c5b33d275c15>:0
at WDYS.Dialog_ShowBuyable.DoWindowContents (UnityEngine.Rect inRect) [0x00134] in <1c9643d796fe428690378d3e0c859a70>:0
at Verse.Window.InnerWindowOnGUI (System.Int32 x) [0x001d3] in <cd7169108ea74757aa50c5b33d275c15>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch5 (string)
Verse.Window:InnerWindowOnGUI (int)
UnityEngine.GUI:CallWindowDelegate (UnityEngine.GUI/WindowFunction,int,int,UnityEngine.GUISkin,int,single,single,UnityEngine.GUIStyle)

Hotbar sale search works fine. I don't have a slightest clue about why it just suddenly stops working and wasn't able to find a fix (aside from starting a new game). Log:
https://gist.github.com/HugsLibRecordKeeper/2f0cf7017f01eb45de3ee9d56f22ba2c