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:
@@ -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).
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user