Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error + CTD from bed assignment panel #17

Open
okradonkey opened this issue Apr 13, 2020 · 0 comments
Open

Error + CTD from bed assignment panel #17

okradonkey opened this issue Apr 13, 2020 · 0 comments

Comments

@okradonkey
Copy link

image

Mods loaded: Harmony, Core, 4M

  1. Get two colonists in a relationship: Lover or spouse
  2. Build a double bed (or double sleeping spot, royal bed, double bedroll)
  3. Select the bed and click the Set Owner button
  4. Assign one of the lovers
  5. Next to the assigned lover, click the broken heart icon
  6. Crash to desktop with the following error:
Exception filling window for RimWorld.Dialog_AssignBuildingOwner: System.NullReferenceException: Object reference not set to an instance of an object
  at (wrapper dynamic-method) RimWorld.Dialog_AssignBuildingOwner.DMD<DMD<DoWindowContents_Patch0>?559715712::DoWindowContents_Patch0>(RimWorld.Dialog_AssignBuildingOwner,UnityEngine.Rect)
  at Verse.Window.InnerWindowOnGUI (System.Int32 x) [0x00165] in <c8e8d421567e4ee5864626a429a27a37>:0 

Notes:

  • The broken heart's tooltip appears correctly, naming the otherPawn.
  • If the previously assigned bed does NOT have SleepingSlotsCount >= 2, the error does not occur, so everything seems fine through line 410.
  • I believe the problem must be in line 412.
  • I'm not quite able to figure out the solution...

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant