diff options
Diffstat (limited to 'src/dungeon_items.c')
-rw-r--r-- | src/dungeon_items.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dungeon_items.c b/src/dungeon_items.c index 5614e9b..bfaab53 100644 --- a/src/dungeon_items.c +++ b/src/dungeon_items.c @@ -4,16 +4,16 @@ bool8 HasItem(struct DungeonEntity *pokemon, u8 itemIndex) { // Weird assignment to fix a regswap. - struct DungeonEntityData *entityData = entityData = pokemon->entityData; - if (!(entityData->heldItem.itemFlags & ITEM_FLAG_EXISTS)) + struct DungeonEntityData *pokemonData = pokemonData = pokemon->entityData; + if (!(pokemonData->heldItem.itemFlags & ITEM_FLAG_EXISTS)) { return FALSE; } - if (entityData->heldItem.itemFlags & ITEM_FLAG_STICKY) + if (pokemonData->heldItem.itemFlags & ITEM_FLAG_STICKY) { return FALSE; } - if (entityData->heldItem.itemIndex != itemIndex) + if (pokemonData->heldItem.itemIndex != itemIndex) { return FALSE; } |