1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-10-22 14:26:36 +00:00

fix signedness, remove extra semicolon, update offer

This commit is contained in:
Kindi 2025-04-24 20:24:55 +08:00
parent 4b94b6f678
commit 0247082e19
3 changed files with 4 additions and 2 deletions

View file

@ -118,7 +118,7 @@ namespace MWGui
auto update = [](std::vector<ItemStack>& list) {
for (auto it = list.begin(); it != list.end();)
{
int actualCount = it->mBase.getCellRef().getCount();
size_t actualCount = it->mBase.getCellRef().getCount();
if (actualCount < it->mCount)
it->mCount = actualCount;
if (it->mCount == 0)

View file

@ -659,5 +659,7 @@ namespace MWGui
MWBase::Environment::get().getWindowManager()->getInventoryWindow()->updateItemView();
updateItemView();
updateOffer();
}
}

View file

@ -44,7 +44,7 @@ namespace MWGui
void onDeleteCustomData(const MWWorld::Ptr& ptr) override;
TradeItemModel* getTradeModel() { return mTradeModel; };
TradeItemModel* getTradeModel() { return mTradeModel; }
void updateItemView();