summaryrefslogtreecommitdiff
path: root/src/scenes
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2024-12-05 13:17:27 +0100
committerAldrik Ramaekers <aldrikboy@gmail.com>2024-12-05 13:17:27 +0100
commit395aa3f2b53550b9575dde1f5d2fb7494c21addf (patch)
tree478f5609bd86d9de085d684c374971b6ce913f6a /src/scenes
parent0974ff30789a215a31255080251c01eaaf9a5297 (diff)
close #55
Diffstat (limited to 'src/scenes')
-rw-r--r--src/scenes/place_detail.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scenes/place_detail.c b/src/scenes/place_detail.c
index d24d449..f3e1223 100644
--- a/src/scenes/place_detail.c
+++ b/src/scenes/place_detail.c
@@ -685,7 +685,7 @@ void place_detail_show_employee_detail(employee* emp) {
s32 location_id_to_inspect;
if (_active_location == 0 || (_active_location->id != emp->current_location_id && _active_location->id != emp->original_location_id)) {
- s32 location_id_to_inspect = emp->current_location_id;
+ location_id_to_inspect = emp->current_location_id;
if (location_id_to_inspect == INVALID_ID) {
location_id_to_inspect = emp->original_location_id;
}
@@ -960,7 +960,7 @@ static void place_detail_draw_schedule_employee_selector(platform_window* window
}
_active_scheduling_job.timeslots[_active_schedule_selected_job_index].assignee =
- employee_selector_render(window, scale, !is_viewing_existing_timeslot, selected_employee,x,y,w,h, employee_selector_animation, &_active_scheduling_job);
+ employee_selector_render(window, scale, !is_viewing_existing_timeslot, selected_employee,x,y,w,h, employee_selector_animation, &_active_scheduling_job, _active_location);
animation_update(&employee_selector_animation);
}
}