mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-16 19:43:06 +01:00
Refactor PeepType to use strong enum
This commit is contained in:
@@ -490,7 +490,7 @@ static int32_t cc_staff(InteractiveConsole& console, const arguments_t& argv)
|
||||
return 1;
|
||||
}
|
||||
peep = GET_PEEP(int_val[0]);
|
||||
bool is_entertainer = peep != nullptr && peep->AssignedPeepType == PEEP_TYPE_STAFF
|
||||
bool is_entertainer = peep != nullptr && peep->AssignedPeepType == PeepType::Staff
|
||||
&& peep->StaffType == STAFF_TYPE_ENTERTAINER;
|
||||
if (!is_entertainer)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user