From aab50cd2cc94743d527bfffe46027d4ab765e99a Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 1 Dec 2011 09:13:43 +0100 Subject: [PATCH] Fix conditional bug in inventory A spurious semicolon after the conditional checking for the drop count to be not higher than the owned count caused the subsequent count = getCount() to be always executed. Fix by removing the extra semicolon. --- src/inventory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inventory.cpp b/src/inventory.cpp index 5523f7c91..e8475b741 100644 --- a/src/inventory.cpp +++ b/src/inventory.cpp @@ -212,7 +212,7 @@ bool InventoryItem::dropOrPlace(ServerEnvironment *env, s16 dropcount = getDropCount(); if(count < 0 || count > dropcount) count = dropcount; - if(count < 0 || count > getCount()); + if(count < 0 || count > getCount()) count = getCount(); if(count > 0) { -- 2.25.1