diff options
author | Marcus Huderle <huderlem@gmail.com> | 2017-09-19 15:51:04 -0700 |
---|---|---|
committer | Marcus Huderle <huderlem@gmail.com> | 2017-09-19 15:51:04 -0700 |
commit | 82fa74e7a24b95ba6642bc3cbef3830f32c460a7 (patch) | |
tree | e401fc4e2272325c986692b0e86c8e12bed06655 /src/party_menu.c | |
parent | 31d472d048e916f959d93efdf79443c3b0113700 (diff) |
Decompile SwapPokemon
Diffstat (limited to 'src/party_menu.c')
-rw-r--r-- | src/party_menu.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/party_menu.c b/src/party_menu.c index e98af59ee..553ff0ad0 100644 --- a/src/party_menu.c +++ b/src/party_menu.c @@ -112,6 +112,13 @@ void sub_806AEDC(void) #endif +void SwapPokemon(struct Pokemon *a, struct Pokemon *b) +{ + struct Pokemon temp = *a; + *a = *b; + *b = temp; +} + void SetPartyPopupMenuOffsets(u8 menuIndex, u8 *left, u8 *top, const struct PartyPopupMenu *menu) { u8 bottomOffset = (2 * menu[menuIndex].numChoices) + 2; |