diff options
author | ProjectRevoTPP <projectrevotpp@hotmail.com> | 2017-06-09 02:43:39 -0400 |
---|---|---|
committer | ProjectRevoTPP <projectrevotpp@hotmail.com> | 2017-06-09 02:43:39 -0400 |
commit | f5b7921fa3b4356c2d79a117858fc543fd2cf15f (patch) | |
tree | 2bf04c634e5dad251eced85ce9000630ce273307 /src/script_pokemon_util_80C4BF0.c | |
parent | d8ce874f29cb6d21f3348f62ebe05ce004ac3c38 (diff) |
cleanup player_pc.c
Diffstat (limited to 'src/script_pokemon_util_80C4BF0.c')
-rw-r--r-- | src/script_pokemon_util_80C4BF0.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/script_pokemon_util_80C4BF0.c b/src/script_pokemon_util_80C4BF0.c index d1e401e18..e53eb30cb 100644 --- a/src/script_pokemon_util_80C4BF0.c +++ b/src/script_pokemon_util_80C4BF0.c @@ -563,16 +563,16 @@ u8 ScriptGiveMon(u16 species, u8 var, u16 item, u32 var3, u32 var4, u8 var5) nationalSpecies = SpeciesToNationalPokedexNum(species); // nested if check to fool compiler - if(sentToPc < 2) + switch(sentToPc) { - if(sentToPc >= 0) - { - // set both the seen and caught flags + case 0: + case 1: GetNationalPokedexFlag(nationalSpecies, 2); GetNationalPokedexFlag(nationalSpecies, 3); - } + return sentToPc; + default: + return sentToPc; } - return sentToPc; } u8 ScriptGiveEgg(u16 value) |