summaryrefslogtreecommitdiff
path: root/src/scenes
diff options
context:
space:
mode:
Diffstat (limited to 'src/scenes')
-rw-r--r--src/scenes/place_detail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scenes/place_detail.c b/src/scenes/place_detail.c
index 1f08e88..e39cc25 100644
--- a/src/scenes/place_detail.c
+++ b/src/scenes/place_detail.c
@@ -1056,7 +1056,7 @@ static void place_detail_draw_schedule(platform_window* window)
// newly scheduling job
if (_active_schedule_state == SCHEDULING_JOB || _active_schedule_state == RESCHEDULING_JOB)
{
- for (s32 i = 0; i < _active_scheduling_job.offer.shipday_count; i++) {
+ for (s32 i = _active_scheduling_job.offer.shipday_count-1; i >= 0; i--) {
scheduled_job_time scheduled_time = _active_scheduling_job.timeslots[i];
s32 dday = CDAYTORDAY(scheduled_time.day);
renderer->render_rectangle(x+hour_w, y+(dday*timeslot_h), w-hour_w, timeslot_h, COLOR_SCHEDULE_ROW_ACTIVE);