battle-engine: fix acupressure crash (#381)
- fixes #380 Co-authored-by: SBird <sbird@no.tld>
This commit is contained in:
parent
12b08670f1
commit
de6811b85e
1 changed files with 1 additions and 1 deletions
|
@ -7001,7 +7001,7 @@ static void Cmd_various(void)
|
|||
u32 statId;
|
||||
do
|
||||
{
|
||||
statId = (Random() % NUM_BATTLE_STATS) + 1;
|
||||
statId = (Random() % (NUM_BATTLE_STATS - 1)) + 1;
|
||||
} while (!(bits & gBitTable[statId]));
|
||||
|
||||
SET_STATCHANGER(statId, 2, FALSE);
|
||||
|
|
Loading…
Reference in a new issue