station_cmd.c
changeset 1820 9b6458526480
parent 1786 a54634efeb98
child 1840 c181d5cb4ffe
equal deleted inserted replaced
1819:e2e977e1462e 1820:9b6458526480
  2656 	if (!IsStationIndex(p1)) return CMD_ERROR;
  2656 	if (!IsStationIndex(p1)) return CMD_ERROR;
  2657 	st = GetStation(p1);
  2657 	st = GetStation(p1);
  2658 
  2658 
  2659 	if (!IsValidStation(st) || !CheckOwnership(st->owner)) return CMD_ERROR;
  2659 	if (!IsValidStation(st) || !CheckOwnership(st->owner)) return CMD_ERROR;
  2660 
  2660 
  2661 	str = AllocateNameUnique((const char*)_decode_parameters, 6);
  2661 	str = AllocateNameUnique(_cmd_text, 6);
  2662 	if (str == 0) return CMD_ERROR;
  2662 	if (str == 0) return CMD_ERROR;
  2663 
  2663 
  2664 	if (flags & DC_EXEC) {
  2664 	if (flags & DC_EXEC) {
  2665 		old_str = st->string_id;
  2665 		old_str = st->string_id;
  2666 		st->string_id = str;
  2666 		st->string_id = str;