From ce4418941d1c3170aca9a2d217bd072fbb4d25dd Mon Sep 17 00:00:00 2001 From: XProger Date: Sat, 24 Nov 2018 07:08:29 +0300 Subject: [PATCH] fix passport animation --- src/inventory.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inventory.h b/src/inventory.h index 845a1a7..df84279 100644 --- a/src/inventory.h +++ b/src/inventory.h @@ -1258,7 +1258,7 @@ struct Inventory { int itemIndex = index == targetIndex ? getGlobalIndex(page, index) : -1; for (int i = 0; i < itemsCount; i++) { - items[i]->update(chosen, phaseChoose); + items[i]->update(chosen && itemIndex == i, phaseChoose); float &angle = items[i]->angle; if (itemIndex != i || chosen) {