mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	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
This commit is contained in:
		@@ -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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user