Fix: Copy & pasted error warning messages.

This commit is contained in:
Peter Nelson 2024-05-08 22:54:51 +01:00
parent 71ea4f2506
commit 4e3252f8cf
No known key found for this signature in database
GPG Key ID: 8EF8F0A467DF75ED
1 changed files with 2 additions and 2 deletions

View File

@ -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;