mirror of https://github.com/pret/pokeemerald.git
text: Simplify DynamicPlaceholderTextUtil_Reset
Signed-off-by:Arven
This commit is contained in:
parent
6d6a876dbd
commit
bce97562b8
|
@ -7,17 +7,11 @@ static EWRAM_DATA const u8 *sStringPointers[8] = {};
|
||||||
|
|
||||||
void DynamicPlaceholderTextUtil_Reset(void)
|
void DynamicPlaceholderTextUtil_Reset(void)
|
||||||
{
|
{
|
||||||
const u8 **ptr;
|
s32 i;
|
||||||
u8 *fillval;
|
for (i = 0; i < (s32)ARRAY_COUNT(sStringPointers); i++)
|
||||||
const u8 **ptr2;
|
|
||||||
|
|
||||||
ptr = sStringPointers;
|
|
||||||
fillval = NULL;
|
|
||||||
ptr2 = ptr + (ARRAY_COUNT(sStringPointers) - 1);
|
|
||||||
do
|
|
||||||
{
|
{
|
||||||
*ptr2-- = fillval;
|
sStringPointers[i] = NULL;
|
||||||
} while ((int)ptr2 >= (int)ptr);
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void DynamicPlaceholderTextUtil_SetPlaceholderPtr(u8 idx, const u8 *ptr)
|
void DynamicPlaceholderTextUtil_SetPlaceholderPtr(u8 idx, const u8 *ptr)
|
||||||
|
|
Loading…
Reference in New Issue