Skip to content

Commit 4e12cf7

Browse files
authored
Fix Start Time Adjustments (#159)
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.
1 parent 136dbac commit 4e12cf7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Tasha/Scheduler/Distribution2.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ private static int GetStartTimeAdjustments(Span<int> adjustmentsToApply, StartTi
181181
&& adjustments[i].HomePlanningDistricts.Contains(householdPD)
182182
&& adjustments[i].WorkPlanningDistrict.Contains(workPD))
183183
{
184-
adjustments[pos++] = adjustments[i];
184+
adjustmentsToApply[pos++] = i;
185185
}
186186
}
187187
return pos;

0 commit comments

Comments
 (0)