@@ -890,6 +890,7 @@ wDownscaledMonSize::
890890; FormatMovesString stores the number of moves minus one here
891891wNumMovesMinusOne:: db
892892
893+ ; This union spans 20 bytes.
893894UNION
894895; storage buffer for various name strings
895896wNameBuffer:: ds NAME_BUFFER_LENGTH
@@ -905,7 +906,8 @@ wPayDayMoney:: ds 3
905906
906907NEXTU
907908; evolution data for one mon
908- wEvoDataBuffer:: ds 4 * 3 + 1 ; enough for Eevee's three 4-byte evolutions and 0 terminator
909+ wEvoDataBuffer:: ds NUM_EVOS_IN_BUFFER * 4 + 1 ; enough for Eevee's three 4-byte evolutions and 0 terminator
910+ wEvoDataBufferEnd::
909911
910912NEXTU
911913wBattleMenuCurrentPP:: db
@@ -1068,7 +1070,7 @@ wPartyMenuBlkPacket:: ds $30
10681070NEXTU
10691071 ds 29
10701072; storage buffer for various strings
1071- wStringBuffer:: ds 20
1073+ wStringBuffer:: ds NAME_BUFFER_LENGTH
10721074
10731075NEXTU
10741076 ds 29
@@ -1206,7 +1208,7 @@ wTrainerPicPointer:: dw
12061208 ds 1
12071209
12081210UNION
1209- wTempMoveNameBuffer:: ds 14
1211+ wTempMoveNameBuffer:: ds ITEM_NAME_LENGTH + 1
12101212
12111213NEXTU
12121214; The name of the mon that is learning a move.
@@ -2136,12 +2138,12 @@ wEventFlags:: flag_array NUM_EVENTS
21362138
21372139UNION
21382140wGrassRate:: db
2139- wGrassMons:: ds 10 * 2
2141+ wGrassMons:: ds WILDDATA_LENGTH - 1
21402142
21412143 ds 8
21422144
21432145wWaterRate:: db
2144- wWaterMons:: ds 10 * 2
2146+ wWaterMons:: ds WILDDATA_LENGTH - 1
21452147
21462148NEXTU
21472149; linked game's trainer name
0 commit comments