diff options
Diffstat (limited to 'src/newgrf_sound.cpp')
-rw-r--r-- | src/newgrf_sound.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_sound.cpp b/src/newgrf_sound.cpp index 6151f4cb3..47ddf2406 100644 --- a/src/newgrf_sound.cpp +++ b/src/newgrf_sound.cpp @@ -59,7 +59,7 @@ uint GetNumSounds() */ bool PlayVehicleSound(const Vehicle *v, VehicleSoundEvent event) { - const GRFFile *file = GetEngineGRF(v->engine_type); + const GRFFile *file = v->GetGRF(); uint16 callback; /* If the engine has no GRF ID associated it can't ever play any new sounds */ |