File diff r27319:ea7c4a418203 → r27320:a815d811abc1
src/newgrf_storage.cpp
Show inline comments
 
@@ -91,9 +91,9 @@ void AddChangedPersistentStorage(BasePer
 
	}
 

	
 
	/* Discard all temporary changes */
 
	for (std::set<BasePersistentStorageArray*>::iterator it = _changed_storage_arrays->begin(); it != _changed_storage_arrays->end(); it++) {
 
		Debug(desync, 1, "Discarding persistent storage changes: Feature {}, GrfID {:08X}, Tile {}", (*it)->feature, BSWAP32((*it)->grfid), (*it)->tile);
 
		(*it)->ClearChanges();
 
	for (auto &it : *_changed_storage_arrays) {
 
		Debug(desync, 1, "Discarding persistent storage changes: Feature {}, GrfID {:08X}, Tile {}", it->feature, BSWAP32(it->grfid), it->tile);
 
		it->ClearChanges();
 
	}
 
	_changed_storage_arrays->clear();
 
}