Skip to content

Commit

Permalink
Fix Start Time Adjustments (#159)
Browse files Browse the repository at this point in the history
Fixes the start time adjustment logic for TASHA's scheduler.  The previous implementation would only work with a single adjustment.  It looks like the implementation change from returning back references to the adjustment modules had an error in the inner loop.
  • Loading branch information
JamesVaughan authored Jan 2, 2023
1 parent 136dbac commit 4e12cf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tasha/Scheduler/Distribution2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ private static int GetStartTimeAdjustments(Span<int> adjustmentsToApply, StartTi
&& adjustments[i].HomePlanningDistricts.Contains(householdPD)
&& adjustments[i].WorkPlanningDistrict.Contains(workPD))
{
adjustments[pos++] = adjustments[i];
adjustmentsToApply[pos++] = i;
}
}
return pos;
Expand Down

0 comments on commit 4e12cf7

Please sign in to comment.