We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e21a81f commit 5f1d47eCopy full SHA for 5f1d47e
src/xrGame/Inventory.cpp
@@ -1081,6 +1081,9 @@ bool CInventory::Eat(PIItem pIItem)
1081
pIItem->SetDropManual(true);
1082
}
1083
1084
+ if (pItemToEat->IsUsingCondition() && Actor()->m_inventory == this)
1085
+ CurrentGameUI()->GetActorMenu().RefreshConsumableCells();
1086
+
1087
return true;
1088
1089
src/xrGame/eatable_item.cpp
@@ -138,8 +138,6 @@ bool CEatableItem::UseBy(CEntityAlive* entity_alive)
138
m_iRemainingUses = 0;
139
140
SetCondition((float)m_iRemainingUses / (float)m_iMaxUses);
141
- if (IsUsingCondition())
142
- CurrentGameUI()->GetActorMenu().RefreshConsumableCells();
143
144
145
0 commit comments