aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/inventory.cpp2
1 files changed, 1 insertions, 1 deletions
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)
{