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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user