Mehni / kNumbers

Quick comparison of colonist stats
MIT License
34 stars 28 forks source link

Handle null PawnColumnDefs #73

Closed malnormalulo closed 3 months ago

malnormalulo commented 10 months ago

Previously, attempting to load a table with an invalid column def would cause a NullReferenceException and prevent the UI from drawing. The error was unrecoverable except by editing the save file or introducing the missing def. This scenario could occur when a mod is removed, but also when a conditionally added def is disabled (e.g., unchecking the "Skilled Work Speed" option in Niilo's QoL).

Mehni commented 3 months ago

I've taken this PR in spirit, thank you very much!

https://github.com/Mehni/kNumbers/pull/77/files#diff-0b1c9e82e60380f26f8880921f1ed5ce8334d64530fd073eaf03c2cc2fd8e1d0R75