1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 23:04:36 +01:00

Fix #17005: Unable to set patrol area for first staff member in park

This commit is contained in:
Hielke Morsink
2022-04-27 23:11:45 +02:00
committed by GitHub
parent 35915b0a5d
commit 2954b0a30d
2 changed files with 2 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
0.4.1 (in development)
------------------------------------------------------------------------
- Fix: [#16974] Small scenery ghosts can be deleted.
- Fix: [#17005] Unable to set patrol area for first staff member in park.
- Fix: [#17073] Corrupt ride window and random crashes when trains have more than 144 cars.
- Improved: [#17050] Transparency can be enabled directly without needing see-through enabled first.
- Removed: [#16864] Title sequence editor (replaced by plug-in).

View File

@@ -299,5 +299,5 @@ rct_window* WindowPatrolAreaOpen(EntityId staffId)
EntityId WindowPatrolAreaGetCurrentStaffId()
{
auto current = reinterpret_cast<PatrolAreaWindow*>(window_find_by_class(WC_PATROL_AREA));
return current != nullptr ? current->GetStaffId() : EntityId();
return current != nullptr ? current->GetStaffId() : EntityId::GetNull();
}