1
0
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:
Matt
2020-07-25 11:46:06 +02:00
parent 3b60740128
commit fa2bd4cad6
27 changed files with 60 additions and 60 deletions

View File

@@ -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)
{