rwpsychology / Psychology

This is a total overhaul of Rimworld's psychological and social systems.
https://ludeon.com/forums/index.php?topic=34112
15 stars 9 forks source link

Persistent bug with pawns leaving the map while having conversations #33

Open rwpsychology opened 6 years ago

rwpsychology commented 6 years ago

Example:

Exception ticking hediff (HoldingConversation ticksSinceCreation=201) for pawn Severin. Removing hediff... Exception: System.NullReferenceException: Object reference not set to an instance of an object at Psychology.Hediff_Conversation.PostRemoved () <0x006e3> at Verse.Pawn_HealthTracker.RemoveHediff (Verse.Hediff) <0x00044> at Psychology.Hediff_Conversation.Tick () <0x0010a> at (wrapper dynamic-method) Verse.Pawn_HealthTracker.HealthTick_Patch1 (object) <0x001a8>

Tried fixing it in Tick(), no luck. It's an NRE in PostRemoved(), somewhere.