Merge branch 'master' of https://github.com/pret/pokeemerald into doc-windows
This commit is contained in:
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user