mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-22 14:09:10 +00:00
(svn r16849) -Codechange: replace GetCargo() by CargoSpec::Get()
This commit is contained in:
@@ -133,7 +133,7 @@ void InitializeLandscapeVariables(bool only_constants)
|
||||
if (only_constants) return;
|
||||
|
||||
for (CargoID i = 0; i < NUM_CARGO; i++) {
|
||||
_cargo_payment_rates[i] = GetCargo(i)->initial_payment;
|
||||
_cargo_payment_rates[i] = CargoSpec::Get(i)->initial_payment;
|
||||
_cargo_payment_rates_frac[i] = 0;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user