aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-09-02 23:01:40 +0300
committerPerttu Ahola <celeron55@gmail.com>2012-09-02 23:01:42 +0300
commitcc47ff7c4cd3a2ae1685f19c52da98164befcd0a (patch)
tree2fffbf0ae4f2b5486841cbad922165eea5b929c8
parente1a495ee306290b3bec2de9aa298aac1528e9243 (diff)
downloadminetest-cc47ff7c4cd3a2ae1685f19c52da98164befcd0a.tar.gz
minetest-cc47ff7c4cd3a2ae1685f19c52da98164befcd0a.tar.bz2
minetest-cc47ff7c4cd3a2ae1685f19c52da98164befcd0a.zip
Fix moving stuff into a mismatched stack in a "infinite" inventory
-rw-r--r--src/inventorymanager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/inventorymanager.cpp b/src/inventorymanager.cpp
index 1a7f56f31..4d862de66 100644
--- a/src/inventorymanager.cpp
+++ b/src/inventorymanager.cpp
@@ -351,6 +351,8 @@ void IMoveAction::apply(InventoryManager *mgr, ServerActiveObject *player, IGame
if(dst_can_put_count == -1){
list_to->deleteItem(to_i);
list_to->addItem(to_i, to_stack_was);
+ list_from->deleteItem(from_i);
+ list_from->addItem(from_i, from_stack_was);
list_from->takeItem(from_i, count);
}