The function Units::getFocusPenalty dereferences unit->status.current_soul without verifying that it is non-null; as such, if you call it on a unit which has no soul (which seems to include certain types of undead), the game will crash.
It seems this can happen if such a creature becomes a member of your fortress and you have idle-crafting enabled.
The function
Units::getFocusPenaltydereferencesunit->status.current_soulwithout verifying that it is non-null; as such, if you call it on a unit which has no soul (which seems to include certain types of undead), the game will crash.It seems this can happen if such a creature becomes a member of your fortress and you have
idle-craftingenabled.