Refactor PeepType to use strong enum

This commit is contained in:
Matt committed 2020-07-25 11:54:37 +02:00
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)
{