mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-18 01:14:19 +01:00
fix args to GetMonData
This commit is contained in:
parent
b5d98ec93e
commit
7dd6988b2b
@ -6459,7 +6459,7 @@ void SetWildMonHeldItem(void)
|
||||
|
||||
for (i = 0; i < count; i++)
|
||||
{
|
||||
if (GetMonData(&gEnemyParty[i], MON_DATA_HELD_ITEM) != ITEM_NONE)
|
||||
if (GetMonData(&gEnemyParty[i], MON_DATA_HELD_ITEM, NULL) != ITEM_NONE)
|
||||
continue; // prevent ovewriting previously set item
|
||||
|
||||
rnd = Random() % 100;
|
||||
|
Loading…
x
Reference in New Issue
Block a user