GROUPTYPE_NONE to unsigned

This commit is contained in:
GriffinR 2023-02-15 09:49:33 -05:00
parent c32fbf594a
commit 9c1c598160

View File

@ -32,7 +32,7 @@ enum {
#define GROUPTYPE_BATTLE 1
#define GROUPTYPE_UNION 2
#define GROUPTYPE_TOTAL 3
#define GROUPTYPE_NONE -1
#define GROUPTYPE_NONE 0xFF
#define NUM_GROUPTYPES 4
struct WirelessCommunicationStatusScreen
@ -382,7 +382,7 @@ static u32 CountPlayersInGroupAndGetActivity(struct RfuPlayer * player, u32 * gr
for (i = 0; i < ARRAY_COUNT(sActivityGroupInfo); i++)
{
#ifdef UBFIX
// GROUPTYPE_NONE is -1, and shouldn't be used as an index into groupCounts.
// GROUPTYPE_NONE is 0xFF, and shouldn't be used as an index into groupCounts.
// In theory the only activity with this group type (ACTIVITY_SEARCH) wouldn't
// satisfy the condition below, but not necessarily.
if (group_type(i) == GROUPTYPE_NONE)