mirror of https://github.com/OpenTTD/OpenTTD.git
Fix: Copy & pasted error warning messages.
This commit is contained in:
parent
71ea4f2506
commit
4e3252f8cf
|
@ -1408,7 +1408,7 @@ static ChangeInfoResult RoadVehicleChangeInfo(uint engine, int numinfo, int prop
|
||||||
} else {
|
} else {
|
||||||
/* Use translated cargo. Might result in INVALID_CARGO (first refittable), if cargo is not defined. */
|
/* Use translated cargo. Might result in INVALID_CARGO (first refittable), if cargo is not defined. */
|
||||||
ei->cargo_type = GetCargoTranslation(ctype, _cur.grffile);
|
ei->cargo_type = GetCargoTranslation(ctype, _cur.grffile);
|
||||||
if (ei->cargo_type == INVALID_CARGO) GrfMsg(2, "RailVehicleChangeInfo: Invalid cargo type {}, using first refittable", ctype);
|
if (ei->cargo_type == INVALID_CARGO) GrfMsg(2, "RoadVehicleChangeInfo: Invalid cargo type {}, using first refittable", ctype);
|
||||||
}
|
}
|
||||||
ei->cargo_label = CT_INVALID;
|
ei->cargo_label = CT_INVALID;
|
||||||
break;
|
break;
|
||||||
|
@ -1599,7 +1599,7 @@ static ChangeInfoResult ShipVehicleChangeInfo(uint engine, int numinfo, int prop
|
||||||
} else {
|
} else {
|
||||||
/* Use translated cargo. Might result in INVALID_CARGO (first refittable), if cargo is not defined. */
|
/* Use translated cargo. Might result in INVALID_CARGO (first refittable), if cargo is not defined. */
|
||||||
ei->cargo_type = GetCargoTranslation(ctype, _cur.grffile);
|
ei->cargo_type = GetCargoTranslation(ctype, _cur.grffile);
|
||||||
if (ei->cargo_type == INVALID_CARGO) GrfMsg(2, "RailVehicleChangeInfo: Invalid cargo type {}, using first refittable", ctype);
|
if (ei->cargo_type == INVALID_CARGO) GrfMsg(2, "ShipVehicleChangeInfo: Invalid cargo type {}, using first refittable", ctype);
|
||||||
}
|
}
|
||||||
ei->cargo_label = CT_INVALID;
|
ei->cargo_label = CT_INVALID;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue