forked from rosebudai/OpenRCT2-Web
Refactor PeepType to use strong enum
This commit is contained in:
1 parent
3b60740128
commit
fa2bd4cad6
27 files changed
+60
-60
No files matched your search
@@ -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