SaucyPigeon / RW_ColonistBarHiding

A RimWorld mod allowing you to hide colonists from the colonist bar.
MIT License
2 stars 3 forks source link

When you have 2 more maps and one of them is empty (no colonists), the scroll bar will vanish #24

Closed SaucyPigeon closed 4 years ago

SaucyPigeon commented 4 years ago

From Steam user Antisodium

Bug report: When you have 2 more maps and one of them is empty (no colonists), the scroll bar will vanish, making me only able to edit the first 10 pawns.

log below:

Exception filling window for ColonistBarHiding.UI.Dialog_ManageColonistBar:

System.ArgumentNullException: Value cannot be null.

Parameter name: pawn

at ColonistBarHiding.UI.Dialog_ManageColonistBar.AddButton (UnityEngine.Rect rect, Verse.Listing_Standard list, Verse.Pawn pawn, System.Boolean fromColonistBar) [0x0001e] in <0c9a0fb9b8cb441fbed132c669a843c8>:0

at ColonistBarHiding.UI.Dialog_ManageColonistBar.DoWindowContents (UnityEngine.Rect inRect) [0x000cf] in <0c9a0fb9b8cb441fbed132c669a843c8>:0

at Verse.Window.InnerWindowOnGUI (System.Int32 x) [0x00165] in <0ee2c524c4be441e9b7f8bfcb20aca6f>:0

Currently I can resolve this problem by sending one colonist to the empty map. Just a little inconvenient for gameplay. Will be very grateful if you can fix this :)