Fix fakematch in DynamicPlaceholderTextUtil_Reset

From pokefirered
This commit is contained in:
AZero13
2026-03-28 15:31:37 -04:00
parent 61674ecd4b
commit e82d0df9ad

View File

@@ -7,17 +7,9 @@ static EWRAM_DATA const u8 *sStringPointers[8] = {};
void DynamicPlaceholderTextUtil_Reset(void)
{
const u8 **ptr;
u8 *fillval;
const u8 **ptr2;
ptr = sStringPointers;
fillval = NULL;
ptr2 = ptr + (ARRAY_COUNT(sStringPointers) - 1);
do
{
*ptr2-- = fillval;
} while ((int)ptr2 >= (int)ptr);
int i;
for (i = 0; i < (int)ARRAY_COUNT(sStringPointers); i++)
sStringPointers[i] = NULL;
}
void DynamicPlaceholderTextUtil_SetPlaceholderPtr(u8 idx, const u8 *ptr)