Changeset - r27135:53b98380657f
[Not reviewed]
master
0 3 0
Peter Nelson - 14 months ago 2023-04-20 18:20:35
peter1138@openttd.org
Codechange: Use simple assignment to assign specs.
3 files changed with 4 insertions and 4 deletions:
0 comments (0 inline, 0 general)
src/newgrf_airport.cpp
Show inline comments
 
@@ -181,7 +181,7 @@ void AirportOverrideManager::SetEntitySp
 
		return;
 
	}
 

	
 
	memcpy(AirportSpec::GetWithoutOverride(airport_id), as, sizeof(*as));
 
	*AirportSpec::GetWithoutOverride(airport_id) = *as;
 

	
 
	/* Now add the overrides. */
 
	for (int i = 0; i < this->max_offset; i++) {
src/newgrf_airporttiles.cpp
Show inline comments
 
@@ -73,7 +73,7 @@ void AirportTileOverrideManager::SetEnti
 
		return;
 
	}
 

	
 
	memcpy(&AirportTileSpec::tiles[airpt_id], airpts, sizeof(*airpts));
 
	AirportTileSpec::tiles[airpt_id] = *airpts;
 

	
 
	/* Now add the overrides. */
 
	for (int i = 0; i < this->max_offset; i++) {
src/newgrf_commons.cpp
Show inline comments
 
@@ -164,7 +164,7 @@ void HouseOverrideManager::SetEntitySpec
 
		return;
 
	}
 

	
 
	MemCpyT(HouseSpec::Get(house_id), hs);
 
	*HouseSpec::Get(house_id) = *hs;
 

	
 
	/* Now add the overrides. */
 
	for (int i = 0; i < this->max_offset; i++) {
 
@@ -273,7 +273,7 @@ void IndustryTileOverrideManager::SetEnt
 
		return;
 
	}
 

	
 
	memcpy(&_industry_tile_specs[indt_id], its, sizeof(*its));
 
	_industry_tile_specs[indt_id] = *its;
 

	
 
	/* Now add the overrides. */
 
	for (int i = 0; i < this->max_offset; i++) {
0 comments (0 inline, 0 general)