Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
Fix bug: cannot steal item from enemy unit. #22.
Browse files Browse the repository at this point in the history
  • Loading branch information
laqieer committed Sep 12, 2021
1 parent 4bb316c commit 92308b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/buff.c
Original file line number Diff line number Diff line change
Expand Up @@ -1773,7 +1773,7 @@ void AddAsTargetIfCanStealFrom(struct Unit *targetUnit)
{
for(int i = 0; i < 5; i++)
{
if(IsItemStealable(&targetUnit->items[i]))
if(IsItemStealable(targetUnit->items[i].itemId))
{
AddTarget(targetUnit->positionX, targetUnit->positionY, targetUnit->number + targetUnit->side * 0x40, 0);
break;
Expand Down

0 comments on commit 92308b4

Please sign in to comment.