diff --git a/src/openrct2-ui/windows/StaffList.cpp b/src/openrct2-ui/windows/StaffList.cpp index a3c038b81f..c45dbfc9ef 100644 --- a/src/openrct2-ui/windows/StaffList.cpp +++ b/src/openrct2-ui/windows/StaffList.cpp @@ -528,6 +528,8 @@ private: auto actionResult = res->GetData(); auto* staff = GetEntity(actionResult.StaffEntityId); + if (staff == nullptr) + return; // If autoposition of staff is disabled, pickup peep and then open the staff window if (staff->State == PeepState::Picked)