Merge branch 'master' of https://github.com/pret/pokeemerald into doc-windows

This commit is contained in:
GriffinR
2023-02-01 14:59:45 -05:00
259 changed files with 4375 additions and 5702 deletions
+2 -2
View File
@@ -2438,7 +2438,7 @@ void RunUnionRoom(void)
uroom->unreadPlayerId = 0;
gSpecialVar_Result = 0;
ListMenuLoadStdPalAt(0xD0, 1);
ListMenuLoadStdPalAt(BG_PLTT_ID(13), 1);
}
static u16 ReadAsU16(const u8 *ptr)
@@ -4187,7 +4187,7 @@ static s32 IsRequestedTradeInPlayerParty(u32 type, u32 species)
for (i = 0; i < gPlayerPartyCount; i++)
{
species = GetMonData(&gPlayerParty[i], MON_DATA_SPECIES2);
if (gSpeciesInfo[species].type1 == type || gSpeciesInfo[species].type2 == type)
if (gSpeciesInfo[species].types[0] == type || gSpeciesInfo[species].types[1] == type)
return UR_TRADE_MATCH;
}
return UR_TRADE_NOTYPE;