mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	Inventory: Fix assertion caused by a no-op stack movement
This commit is contained in:
		@@ -354,6 +354,9 @@ void IMoveAction::apply(InventoryManager *mgr, ServerActiveObject *player, IGame
 | 
			
		||||
		return;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (list_from.get() == list_to.get() && from_i == to_i)
 | 
			
		||||
		return; // Same slot
 | 
			
		||||
 | 
			
		||||
	/*
 | 
			
		||||
		Do not handle rollback if both inventories are that of the same player
 | 
			
		||||
	*/
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user