Skip to content

Commit

Permalink
Merge pull request #1776 from AsparagusEduardo/pret/pr/ShinyValue
Browse files Browse the repository at this point in the history
Added parenthesis to GET_SHINY_VALUE
  • Loading branch information
GriffinRichards authored Sep 11, 2022
2 parents c3623bc + 61752a4 commit 91cba0e
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 91cba0e

Please sign in to comment.