Merge pull request #1261 from ghoulslash/u16-abilities

Fix Buffering abilities > 255
This commit is contained in:
Eduardo Quezada D'Ottone 2020-12-04 15:18:45 -03:00 committed by GitHub
commit 15a587f4e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3432,7 +3432,7 @@ static void ExpandBattleTextBuffPlaceholders(const u8 *src, u8 *dst)
srcID += 2;
break;
case B_BUFF_ABILITY: // ability names
StringAppend(dst, gAbilityNames[src[srcID + 1]]);
StringAppend(dst, gAbilityNames[T1_READ_16(&src[srcID + 1])]);
srcID += 3;
break;
case B_BUFF_ITEM: // item name