diff --git a/1.3/Assemblies/RJW_Menstruation.dll b/1.3/Assemblies/RJW_Menstruation.dll index 14e7797..e70cb9c 100644 Binary files a/1.3/Assemblies/RJW_Menstruation.dll and b/1.3/Assemblies/RJW_Menstruation.dll differ diff --git a/1.3/source/RJW_Menstruation/RJW_Menstruation/HediffComps/MenstruationUtility.cs b/1.3/source/RJW_Menstruation/RJW_Menstruation/HediffComps/MenstruationUtility.cs index 6a068da..caec755 100644 --- a/1.3/source/RJW_Menstruation/RJW_Menstruation/HediffComps/MenstruationUtility.cs +++ b/1.3/source/RJW_Menstruation/RJW_Menstruation/HediffComps/MenstruationUtility.cs @@ -253,7 +253,12 @@ namespace RJW_Menstruation public static float GestationHours(this Hediff_BasePregnancy hediff) { - return (1 / /*hediff?.progress_per_tick ??*/ 1) / 2500f; + if (hediff == null) + { + Log.Error("Tried to get gestation length without a pregnancy."); + return 1f; + } + else return (hediff.p_end_tick - hediff.p_start_tick) / GenDate.TicksPerHour; } }