mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 01:05:48 +01:00 
			
		
		
		
	Rollback: Fail on bad precondition instead of causing assertion error
This commit is contained in:
		@@ -210,6 +210,7 @@ bool RollbackAction::applyRevert(Map *map, InventoryManager *imgr, IGameDef *gam
 | 
			
		||||
					<< inventory_index << " too large in "
 | 
			
		||||
					<< "inventory list \"" << inventory_list << "\" in "
 | 
			
		||||
					<< inventory_location << std::endl;
 | 
			
		||||
				return false;
 | 
			
		||||
			}
 | 
			
		||||
			// If item was added, take away item, otherwise add removed item
 | 
			
		||||
			if (inventory_add) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user