diff --git a/Adventures in Lestoria/InventoryCreator.cpp b/Adventures in Lestoria/InventoryCreator.cpp index 9564aabf..38ef3eee 100644 --- a/Adventures in Lestoria/InventoryCreator.cpp +++ b/Adventures in Lestoria/InventoryCreator.cpp @@ -102,16 +102,9 @@ std::function #pragma region Row Merchant Updates std::function InventoryCreator::RowMerchant_InventorySlotsUpdate= [](InventoryScrollableWindowComponent&component,ITCategory cat){ - const std::vector>&merchantInv=Merchant::GetCurrentTravelingMerchant().GetShopItems(); - //We only want to refresh the inventory slots if the component count no longer matches what's actually in our inventory. - if(component.components.size() item:merchantInv){ component.AddButtonOnSlotUpdate(cat); - }else - if(component.components.size()>merchantInv.size()){ //There are empty spots, so let's clean up. - component.RemoveAllComponents(); - for(std::shared_ptr item:merchantInv){ - component.AddButtonOnSlotUpdate(cat); - } } }; std::function InventoryCreator::RowMerchant_AddButtonOnSlotUpdate=