rail_cmd.c
changeset 3527 8f3b8af9e9d3
parent 3526 3a0dddcfd33b
child 3528 ca3ce10452d8
--- a/rail_cmd.c	Wed Apr 12 12:24:39 2006 +0000
+++ b/rail_cmd.c	Wed Apr 12 12:33:21 2006 +0000
@@ -1329,7 +1329,7 @@
 				 * up to the GRF file to decide that. */
 
 				image = cust->ground_sprite;
-				image += (image < _custom_sprites_base) ? rti->total_offset : GetRailTypeInfo(GetRailType(ti->tile))->custom_ground_offset;
+				image += (image < _custom_sprites_base) ? rti->total_offset : rti->custom_ground_offset;
 
 				DrawGroundSprite(image);