Fix safari zone crash on No Cash (#6132)
This commit is contained in:
parent
f3f03ec43f
commit
c77cf8284c
@ -11972,6 +11972,10 @@ void SetShellSideArmCategory(void)
|
||||
u32 physical;
|
||||
u32 special;
|
||||
|
||||
// Don't run this check for Safari Battles. Because player's stats are zeroed out, this performs division by zero which previously would crash on certain emulators in Safari Zone.
|
||||
if (gBattleTypeFlags & BATTLE_TYPE_SAFARI)
|
||||
return;
|
||||
|
||||
for (battlerAtk = 0; battlerAtk < gBattlersCount; battlerAtk++)
|
||||
{
|
||||
attackerAtkStat = gBattleMons[battlerAtk].attack;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user