From 271d247a8d687a48f336dca1312f94fc40a2ccbf Mon Sep 17 00:00:00 2001 From: Celtic Minstrel Date: Fri, 26 Jun 2015 21:01:53 -0400 Subject: [PATCH] Honour quantity with special shop items --- src/boe.dlgutil.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/boe.dlgutil.cpp b/src/boe.dlgutil.cpp index ea5e4a60..2635b083 100644 --- a/src/boe.dlgutil.cpp +++ b/src/boe.dlgutil.cpp @@ -372,7 +372,10 @@ void handle_sale(cShopItem item, int i) { else { short s1, s2, s3; run_special(eSpecCtx::SHOPPING, 0, base_item.item_level, {0,0}, &s1, &s2, &s3); - if(s1 <= 0) take_gold(cost,false); + if(s1 <= 0) { + take_gold(cost,false); + active_shop.takeOne(i); + } } break; case eShopItemType::SKILL: