diff options
author | Marijn van der Werf <marijn.vanderwerf@gmail.com> | 2017-05-21 11:37:35 +0200 |
---|---|---|
committer | scnorton <scnorton@biociphers.org> | 2017-05-24 16:14:44 -0400 |
commit | 8ba066d303825722a78ffbc67cecc0f4598f6f1e (patch) | |
tree | 7a873d2c54230306d8c475f9b703a074b4eb8411 /src/battle_setup.c | |
parent | 3ba95b67bc2565dd61e3879deaa7543d7bf53b4e (diff) |
Remove duplicate strings.h declarations
Diffstat (limited to 'src/battle_setup.c')
-rw-r--r-- | src/battle_setup.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/battle_setup.c b/src/battle_setup.c index 0753fba70..61b9bb1e9 100644 --- a/src/battle_setup.c +++ b/src/battle_setup.c @@ -23,6 +23,7 @@ #include "species.h" #include "starter_choose.h" #include "string_util.h" +#include "strings.h" #include "task.h" #include "text.h" #include "trainer.h" @@ -45,8 +46,6 @@ EWRAM_DATA u8 *gTrainerCannotBattleSpeech = NULL; EWRAM_DATA u8 *gTrainerBattleScriptReturnAddress = NULL; EWRAM_DATA u8 *gTrainerBattleEndScript = NULL; -extern u8 gOtherText_CancelWithTerminator[]; - extern u16 gBattleTypeFlags; extern u16 gScriptLastTalked; extern u8 gUnknown_02024D26; @@ -1169,12 +1168,12 @@ void PlayTrainerEncounterMusic(void) } //Returns an empty string if a null pointer was passed, otherwise returns str -u8 *SanitizeString(u8 *str) +u8 *SanitizeString(const u8 *str) { if (str) - return str; + return (u8 *) str; else - return gOtherText_CancelWithTerminator; + return (u8 *) gOtherText_CancelWithTerminator; } u8 *sub_808281C(void) |