(svn r9259) -Codechange: NUM_CARGO isn't a valid cargo type...

This commit is contained in:
peter1138
2007-03-16 21:42:11 +00:00
parent 28717b6bc5
commit 70e32d663a
4 changed files with 4 additions and 4 deletions

View File

@@ -1744,7 +1744,7 @@ int32 CmdRefitRailVehicle(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
if (CheckTrainStoppedInDepot(v) < 0) return_cmd_error(STR_TRAIN_MUST_BE_STOPPED);
/* Check cargo */
if (new_cid > NUM_CARGO) return CMD_ERROR;
if (new_cid >= NUM_CARGO) return CMD_ERROR;
SET_EXPENSES_TYPE(EXPENSES_TRAIN_RUN);