From 82037a5abecea4e1f51e76f4cbde773d6c7013f5 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Sat, 6 May 2006 20:27:32 +0000 Subject: (svn r4752) - NewGRF: brokenness slipped through... --- newgrf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'newgrf.c') diff --git a/newgrf.c b/newgrf.c index 8ed010793..295ab8b2d 100644 --- a/newgrf.c +++ b/newgrf.c @@ -1783,7 +1783,7 @@ static void VehicleNewName(byte *buf, int len) switch (GB(id, 8, 8)) { case 0xC4: /* Station class name */ if (GB(id, 0, 8) >= _cur_grffile->num_stations) { - grfmsg(GMS_WARN, "VehicleNewName: Attempt to name undefined station 0x%X, ignoring.", station); + grfmsg(GMS_WARN, "VehicleNewName: Attempt to name undefined station 0x%X, ignoring.", GB(id, 0, 8)); } else { StationClassID sclass = _cur_grffile->stations[GB(id, 0, 8)].sclass; SetStationClassName(sclass, AddGRFString(_cur_grffile->grfid, id, lang, new_scheme, name)); @@ -1792,9 +1792,9 @@ static void VehicleNewName(byte *buf, int len) case 0xC5: /* Station name */ if (GB(id, 0, 8) >= _cur_grffile->num_stations) { - grfmsg(GMS_WARN, "VehicleNewName: Attempt to name undefined station 0x%X, ignoring.", station); + grfmsg(GMS_WARN, "VehicleNewName: Attempt to name undefined station 0x%X, ignoring.", GB(id, 0, 8)); } else { - _cur_grffile->stations[station].name = AddGRFString(_cur_grffile->grfid, id, lang, new_scheme, name); + _cur_grffile->stations[GB(id, 0, 8)].name = AddGRFString(_cur_grffile->grfid, id, lang, new_scheme, name); } break; -- cgit v1.2.3-70-g09d2