src/strings.cpp
changeset 5996 4bcab9c286d8
parent 5874 2db89a640b7a
child 6086 37ea367a54e6
equal deleted inserted replaced
5995:4e57aeeeafcd 5996:4bcab9c286d8
   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;