(svn r3074) -NewGrf: Fix stupid typo in weight setting.

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
peter1138 19 years ago
parent 2b91f55b32
commit 8bf11c2e41

@ -394,7 +394,7 @@ static bool RailVehicleChangeInfo(uint engine, int numinfo, int prop, byte **buf
FOR_EACH_OBJECT {
byte weight = grf_load_byte(&buf);
if (weight < 4) {
if (weight > 4) {
grfmsg(GMS_NOTICE, "RailVehicleChangeInfo: Nonsensical weight of %d tons, ignoring.", weight << 8);
} else {
SB(rvi[i].weight, 8, 8, weight);

Loading…
Cancel
Save