Close #12432: Refactor STAFF_MODE to use strong enum (#12752)

* Refactor STAFF_MODE to use strong enum

Closes #12432

* Change type of gStaffModes to StaffMode
This commit is contained in:
Simon Ellmann authored and GitHub committed 2020-09-02 12:48:40 -03:00
1 parent ae81ed63cc
commit 5f3fe62f83
9 files changed
+25 -21

No files matched your search

@@ -1232,7 +1232,7 @@ static int32_t cc_show_limits(InteractiveConsole& console, [[maybe_unused]] cons
int32_t staffCount = 0;
for (int32_t i = 0; i < STAFF_MAX_COUNT; ++i)
{
if (gStaffModes[i] & 1)
if (gStaffModes[i] != StaffMode::None)
{
staffCount++;
}