mirror of
https://github.com/OpenMW/openmw.git
synced 2025-10-24 18:26:37 +00:00
fix signedness, remove extra semicolon, update offer
This commit is contained in:
parent
4b94b6f678
commit
0247082e19
3 changed files with 4 additions and 2 deletions
|
|
@ -118,7 +118,7 @@ namespace MWGui
|
||||||
auto update = [](std::vector<ItemStack>& list) {
|
auto update = [](std::vector<ItemStack>& list) {
|
||||||
for (auto it = list.begin(); it != list.end();)
|
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)
|
if (actualCount < it->mCount)
|
||||||
it->mCount = actualCount;
|
it->mCount = actualCount;
|
||||||
if (it->mCount == 0)
|
if (it->mCount == 0)
|
||||||
|
|
|
||||||
|
|
@ -659,5 +659,7 @@ namespace MWGui
|
||||||
|
|
||||||
MWBase::Environment::get().getWindowManager()->getInventoryWindow()->updateItemView();
|
MWBase::Environment::get().getWindowManager()->getInventoryWindow()->updateItemView();
|
||||||
updateItemView();
|
updateItemView();
|
||||||
|
|
||||||
|
updateOffer();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ namespace MWGui
|
||||||
|
|
||||||
void onDeleteCustomData(const MWWorld::Ptr& ptr) override;
|
void onDeleteCustomData(const MWWorld::Ptr& ptr) override;
|
||||||
|
|
||||||
TradeItemModel* getTradeModel() { return mTradeModel; };
|
TradeItemModel* getTradeModel() { return mTradeModel; }
|
||||||
|
|
||||||
void updateItemView();
|
void updateItemView();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue