aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/inventorymanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inventorymanager.cpp b/src/inventorymanager.cpp
index 554708e8e..1e81c1dbc 100644
--- a/src/inventorymanager.cpp
+++ b/src/inventorymanager.cpp
@@ -340,7 +340,7 @@ void IMoveAction::apply(InventoryManager *mgr, ServerActiveObject *player, IGame
*/
ItemStack src_item = list_from->getItem(from_i);
- if (count > 0)
+ if (count > 0 && count < src_item.count)
src_item.count = count;
if (src_item.empty())
return;