summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2024-12-04 21:44:26 +0100
committerAldrik Ramaekers <aldrikboy@gmail.com>2024-12-04 21:44:26 +0100
commit31068b7b2abb092768773e7a23428d2861cc4c7a (patch)
tree4bef2f9df03e0ea0bc0bf146277bbb4ebd48b52a
parentef32a4bba790b551821cbcf5b98d9416c86a2761 (diff)
bug fixes
-rw-r--r--src/scenes/place_detail.c1
-rw-r--r--src/scenes/save_state_select.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/scenes/place_detail.c b/src/scenes/place_detail.c
index 1a7d832..5c365b8 100644
--- a/src/scenes/place_detail.c
+++ b/src/scenes/place_detail.c
@@ -673,6 +673,7 @@ void place_detail_show_schedule_with_highlighted_job(world_location* loc, schedu
_active_schedule_state = VIEWING;
_active_selected_scheduled_job = job;
+ _active_scheduling_job = *job;
selected_tab_index = PLACE_DETAIL_SHOW_MAIN;
current_detail_state = PLACE_DETAIL_SHOW_SCHEDULE;
tag_animation = animation_create(TAG_ANIMATION_DURATION);
diff --git a/src/scenes/save_state_select.c b/src/scenes/save_state_select.c
index 6065735..ae428af 100644
--- a/src/scenes/save_state_select.c
+++ b/src/scenes/save_state_select.c
@@ -559,7 +559,7 @@ static void load_save_file(s32 index)
GET_PROP(employee_id, timeslot_iter, "assignee_id");
u32 emp_id = (u32)employee_id->valuedouble;
- job_time.assignee = get_employee_by_id(existing_loc, emp_id);
+ job_time.assignee = get_employee_by_id_global(new_world, emp_id);
existing_job.timeslots[timeslot_index] = job_time;
timeslot_index++;