summaryrefslogtreecommitdiff
path: root/src/dungeon_ai_item_weight.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dungeon_ai_item_weight.c')
-rw-r--r--src/dungeon_ai_item_weight.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dungeon_ai_item_weight.c b/src/dungeon_ai_item_weight.c
index 6c9669b..829bc2d 100644
--- a/src/dungeon_ai_item_weight.c
+++ b/src/dungeon_ai_item_weight.c
@@ -85,11 +85,11 @@ u32 EvaluateItem(struct DungeonEntity *targetPokemon, struct ItemSlot *item, u32
{
if (move->moveFlags & MOVE_FLAG_EXISTS)
{
- if (move->pp == 0)
+ if (move->PP == 0)
{
itemWeight += 30;
}
- if (move->pp != GetMoveMaxPP(move2))
+ if (move->PP != GetMoveMaxPP(move2))
{
itemWeight += 6;
}