fix uninitialized ai modifier variable in ai calc damage
This commit is contained in:
parent
63aded9ce8
commit
23272074bf
1 changed files with 2 additions and 1 deletions
|
@ -802,6 +802,7 @@ s32 AI_CalcDamage(u16 move, u8 battlerAtk, u8 battlerDef, u8 *typeEffectiveness,
|
|||
}
|
||||
else
|
||||
{
|
||||
effectivenessMultiplier = CalcTypeEffectivenessMultiplier(move, moveType, battlerAtk, battlerDef, FALSE);
|
||||
dmg = 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue