From cc47ff7c4cd3a2ae1685f19c52da98164befcd0a Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sun, 2 Sep 2012 23:01:40 +0300 Subject: [PATCH] Fix moving stuff into a mismatched stack in a "infinite" inventory --- src/inventorymanager.cpp | 2 ++ 1 file changed, 2 insertions(+) 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); } -- 2.30.2