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-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=cc47ff7c4cd3a2ae1685f19c52da98164befcd0a;p=zefram%2Fminetest%2Fminetest_engine.git Fix moving stuff into a mismatched stack in a "infinite" inventory --- diff --git a/src/inventorymanager.cpp b/src/inventorymanager.cpp index 1a7f56f3..4d862de6 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); }