Fix crash due to off-by-one error with randomizing the traveling merchant when reaching chapter 2+. Fix player inventory scrollbars not resizing when items are removed from the inventory because of crafting. Release Build 7857, Test Version 0.4.1

This commit is contained in:
2024-02-29 19:42:01 -06:00
parent 469c360e51
commit 94f314a7aa
8 changed files with 44 additions and 23 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ MerchantFunctionPrimingData Merchant::sellFunctionPrimed("CanSellItem()");
Merchant Merchant::travelingMerchant;
const Merchant&Merchant::GetRandomMerchant(Chapter chapter){
const Merchant&newMerchant=merchants[chapter][util::random()%(merchants[chapter].size()-1)];
const Merchant&newMerchant=merchants[chapter][util::random()%(merchants[chapter].size())];
return newMerchant;
}