From c710b8df7ca3eaf776078c919f1e933e33852323 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Fri, 26 Aug 2011 15:35:03 +0200 Subject: [PATCH] Recalculate shop prices before giving money back on sold items. This fixes a bug where one could get more than half the item price back. In particularly, a level 2 Plasma Cooling Booster would sell for more than you bought it for. This fixes Debian bug #253380. --- code/shop.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/code/shop.cpp b/code/shop.cpp index 341aa60..2717da2 100644 --- a/code/shop.cpp +++ b/code/shop.cpp @@ -710,6 +710,7 @@ void sell(int i) break; } + adjustShopPrices(); currentGame.cash += (shopItems[i].price / 2); }