mirror of
https://github.com/pret/pokeemerald.git
synced 2026-05-09 04:13:03 -05:00
fixed RandomElement
This commit is contained in:
parent
d133564e21
commit
34abc440cb
|
|
@ -402,7 +402,7 @@ const void *RandomElementArray(enum RandomTag tag, const void *array, size_t siz
|
|||
|
||||
if (turn && turn->rng.tag == tag)
|
||||
{
|
||||
u32 element;
|
||||
u32 element = 0;
|
||||
for (index = 0; index < count; index++)
|
||||
{
|
||||
memcpy(&element, (const u8 *)array + size * index, size);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user