From 92308b41358c761b29e245fb0fe712d5c0457afb Mon Sep 17 00:00:00 2001 From: laqieer Date: Sun, 12 Sep 2021 21:07:53 +0800 Subject: [PATCH] Fix bug: cannot steal item from enemy unit. https://github.com/laqieer/fe7-jp-stunning-tribble/issues/22. --- src/buff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/buff.c b/src/buff.c index f7bf17de..22a5a5b4 100644 --- a/src/buff.c +++ b/src/buff.c @@ -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;