mirror of
https://github.com/pret/pokeemerald.git
synced 2026-08-24 19:15:33 -05:00
Fix fakematch in DynamicPlaceholderTextUtil_Reset
From pokefirered
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user