mirror of https://github.com/OpenRCT2/OpenRCT2.git
Merge pull request #19442 from Gymnasiast/fix/launchpad-build-error
Add missing null check
This commit is contained in:
commit
ef25274560
|
@ -528,6 +528,8 @@ private:
|
|||
|
||||
auto actionResult = res->GetData<StaffHireNewActionResult>();
|
||||
auto* staff = GetEntity<Staff>(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)
|
||||
|
|
Loading…
Reference in New Issue