Codechange: Use simple assignment to assign specs.

This commit is contained in:
Peter Nelson
2023-04-20 19:20:35 +01:00
committed by PeterN
parent 087654501b
commit 370a8d77a4
3 changed files with 4 additions and 4 deletions

View File

@@ -73,7 +73,7 @@ void AirportTileOverrideManager::SetEntitySpec(const AirportTileSpec *airpts)
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++) {