From: Perttu Ahola Date: Sun, 2 Sep 2012 20:01:40 +0000 (+0300) Subject: Fix moving stuff into a mismatched stack in a "infinite" inventory X-Git-Tag: 0.4.3~8 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=cc47ff7c4cd3a2ae1685f19c52da98164befcd0a;p=oweals%2Fminetest.git Fix moving stuff into a mismatched stack in a "infinite" inventory --- 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); }