station_cmd.c
changeset 3527 8f3b8af9e9d3
parent 3515 b14c49efef1e
child 3540 83bd858fe9fe
--- a/station_cmd.c	Wed Apr 12 12:24:39 2006 +0000
+++ b/station_cmd.c	Wed Apr 12 12:33:21 2006 +0000
@@ -1955,7 +1955,7 @@
 	if (image & PALETTE_MODIFIER_COLOR) image |= image_or_modificator;
 
 	// For custom sprites, there's no railtype-based pitching.
-	offset = (image & SPRITE_MASK) < _custom_sprites_base ? rti->total_offset : GetRailTypeInfo(railtype)->custom_ground_offset;
+	offset = (image & SPRITE_MASK) < _custom_sprites_base ? rti->total_offset : rti->custom_ground_offset;
 	image += offset;
 
 	// station_land array has been increased from 82 elements to 114