mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	Fix issue #1275 - one more missing check.
This commit is contained in:
		@@ -78,7 +78,7 @@ ItemStack ServerActiveObject::getWieldedItem() const
 | 
			
		||||
	if(inv)
 | 
			
		||||
	{
 | 
			
		||||
		const InventoryList *list = inv->getList(getWieldList());
 | 
			
		||||
		if(list)
 | 
			
		||||
		if(list && (getWieldIndex() < (s32)list->getSize())) 
 | 
			
		||||
			return list->getItem(getWieldIndex());
 | 
			
		||||
	}
 | 
			
		||||
	return ItemStack();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user