src/strings.cpp
changeset 6322 3d191e6e89bc
parent 6125 492a1c0440af
child 6268 4b5241e5dd10
child 6412 a77de25206bc
equal deleted inserted replaced
6321:62564548351b 6322:3d191e6e89bc
   800 			}
   800 			}
   801 
   801 
   802 			case SCC_STATION_NAME: { // {STATION}
   802 			case SCC_STATION_NAME: { // {STATION}
   803 				const Station* st = GetStation(GetInt32(&argv));
   803 				const Station* st = GetStation(GetInt32(&argv));
   804 
   804 
   805 				if (!IsValidStation(st)) { // station doesn't exist anymore
   805 				if (!st->IsValid()) { // station doesn't exist anymore
   806 					buff = GetStringWithArgs(buff, STR_UNKNOWN_DESTINATION, NULL, last);
   806 					buff = GetStringWithArgs(buff, STR_UNKNOWN_DESTINATION, NULL, last);
   807 				} else {
   807 				} else {
   808 					int32 temp[2];
   808 					int32 temp[2];
   809 					temp[0] = st->town->townnametype;
   809 					temp[0] = st->town->townnametype;
   810 					temp[1] = st->town->townnameparts;
   810 					temp[1] = st->town->townnameparts;