MSeal / RimworldTerrainMovementKit

A mod for other mods to add terrain specific movement options and restrictions
MIT License
1 stars 3 forks source link

Fixing issue where pawns not on a map, but have a hediff added, might… #3

Closed FoxWithAShotgun closed 3 years ago

FoxWithAShotgun commented 3 years ago

… trip a null pointer exception.

Issue is initially caused by a delegate attached to hediff set on pawns, which would notify on change and force a recalculation of movement rates. As a pawn that has never been on the map would not have an active jobs list, this would cause a nullref exception.