diff --git a/CalculationEngine/HouseholdElements/CalcPerson.cs b/CalculationEngine/HouseholdElements/CalcPerson.cs index 971d9096..8b2dcc9b 100644 --- a/CalculationEngine/HouseholdElements/CalcPerson.cs +++ b/CalculationEngine/HouseholdElements/CalcPerson.cs @@ -96,12 +96,12 @@ public CalcPerson([JetBrains.Annotations.NotNull] CalcPersonDto calcPerson, IsOnVacation = isOnVacation; CurrentLocation = startingLocation; _vacationAffordanceGuid = System.Guid.NewGuid().ToStrGuid(); - _vacationLocationGuid = System.Guid.NewGuid().ToStrGuid(); } //guid for all vacations of this person private readonly StrGuid _vacationAffordanceGuid; - private readonly StrGuid _vacationLocationGuid; + // use one vacation location guid for all persons + private static readonly StrGuid _vacationLocationGuid = System.Guid.NewGuid().ToStrGuid(); [JetBrains.Annotations.NotNull] private CalcLocation CurrentLocation { get; set; }