aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-09-02 20:13:11 +0300
committerPerttu Ahola <celeron55@gmail.com>2012-09-02 20:24:45 +0300
commit6495007924d8907ddfff14be09d38a4b1745b95a (patch)
tree471295b819df4fc0327424c94f57d1f79af50fbc /src
parentd53a6cd8518edd025acdfc7878ede857867e507b (diff)
downloadminetest-6495007924d8907ddfff14be09d38a4b1745b95a.tar.gz
minetest-6495007924d8907ddfff14be09d38a4b1745b95a.tar.bz2
minetest-6495007924d8907ddfff14be09d38a4b1745b95a.zip
Fix bug in moving a larger sized stack in inventory on top of another
- You have 2 stacks: a with x items and b with y<x items - Take a with your mouse and place it on b - Whole stack a moves to b - (y * 2 - x) items move from b to a - (x - y) items are left to the mouse cursor
Diffstat (limited to 'src')
-rw-r--r--src/guiFormSpecMenu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/guiFormSpecMenu.cpp b/src/guiFormSpecMenu.cpp
index 760d67f9f..41ec0f3da 100644
--- a/src/guiFormSpecMenu.cpp
+++ b/src/guiFormSpecMenu.cpp
@@ -1057,7 +1057,7 @@ bool GUIFormSpecMenu::OnEvent(const SEvent& event)
if(leftover.count == stack_from.count)
{
// Swap the stacks
- m_selected_amount -= stack_to.count;
+ m_selected_amount = stack_to.count;
}
else if(leftover.empty())
{