Change int to u8

Jenkins plz
This commit is contained in:
Sarge-117 2022-08-20 11:16:46 -07:00
parent 6fc3c8cf77
commit ccce87cb89
2 changed files with 3 additions and 3 deletions

View File

@ -3977,12 +3977,12 @@ void CreateScrubMessages() {
} }
CustomMessageMinimal NaviMessages[]; CustomMessageMinimal NaviMessages[];
extern const int NaviMsgCount = 15; extern const u8 NaviMsgCount = 15;
void CreateNaviRandoMessages() { void CreateNaviRandoMessages() {
CustomMessageManager* customMessageManager = CustomMessageManager::Instance; CustomMessageManager* customMessageManager = CustomMessageManager::Instance;
customMessageManager->AddCustomMessageTable(Randomizer::NaviRandoMessageTableID); customMessageManager->AddCustomMessageTable(Randomizer::NaviRandoMessageTableID);
for (int i = 0; i <= (NaviMsgCount - 1); i++) { for (u8 i = 0; i <= (NaviMsgCount - 1); i++) {
customMessageManager->CreateMessage(Randomizer::NaviRandoMessageTableID, i, customMessageManager->CreateMessage(Randomizer::NaviRandoMessageTableID, i,
{ TEXTBOX_TYPE_BLACK, TEXTBOX_POS_BOTTOM, NaviMessages[i].english, { TEXTBOX_TYPE_BLACK, TEXTBOX_POS_BOTTOM, NaviMessages[i].english,
NaviMessages[i].german, NaviMessages[i].french }); NaviMessages[i].german, NaviMessages[i].french });

View File

@ -1447,7 +1447,7 @@ extern "C" CustomMessageEntry Randomizer_GetScrubMessage(u16 scrubTextId) {
return CustomMessageManager::Instance->RetrieveMessage(Randomizer::scrubMessageTableID, price); return CustomMessageManager::Instance->RetrieveMessage(Randomizer::scrubMessageTableID, price);
} }
extern const int NaviMsgCount; extern const u8 NaviMsgCount;
extern "C" CustomMessageEntry Randomizer_GetNaviMessage() { extern "C" CustomMessageEntry Randomizer_GetNaviMessage() {
u16 naviTextId = rand() % NaviMsgCount; u16 naviTextId = rand() % NaviMsgCount;