Skip to content

Commit

Permalink
Added parenthesis to GET_SHINY_VALUE
Browse files Browse the repository at this point in the history
  • Loading branch information
AsparagusEduardo committed Sep 11, 2022
1 parent c3623bc commit 61752a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/pokemon.h
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ struct Evolution
| (((personality) & 0x00000003) >> 0) \
) % NUM_UNOWN_FORMS)

#define GET_SHINY_VALUE(otId, personality)HIHALF(otId) ^ LOHALF(otId) ^ HIHALF(personality) ^ LOHALF(personality)
#define GET_SHINY_VALUE(otId, personality) (HIHALF(otId) ^ LOHALF(otId) ^ HIHALF(personality) ^ LOHALF(personality))

extern u8 gPlayerPartyCount;
extern struct Pokemon gPlayerParty[PARTY_SIZE];
Expand Down

0 comments on commit 61752a4

Please sign in to comment.