erdelf / AlienRaces

Rimworld mod alien race framework
MIT License
103 stars 69 forks source link

added aditional null check to handle missing head directional offset #33

Closed FxWolfxe closed 4 years ago

FxWolfxe commented 4 years ago

Added aditional null check in BaseHeadOffsetAtPostfix to handle when GraphicPaths.headOffsetDirectional is null

erdelf commented 4 years ago

how exactly could that case happen except if race modders specifically produce it?

FxWolfxe commented 4 years ago

It was caused by the way I was generating some of the hybrid races used in Pawnmorpher, and I’ve fixed it on our end. It would still be a good idea to check for null in this case to avoid future issues with us and other mods if this field isn’t assigned

erdelf commented 4 years ago

fine