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

@@ -181,7 +181,7 @@ void AirportOverrideManager::SetEntitySpec(AirportSpec *as)
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++) {