summaryrefslogtreecommitdiff
path: root/src/train_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-08-19 20:45:29 +0000
committerrubidium <rubidium@openttd.org>2010-08-19 20:45:29 +0000
commitcc658392ebef76ca21efc7c3ab1aaaa93c50448e (patch)
treeb5927fb50b80510e15aa0bc9e42ef24b66c17850 /src/train_gui.cpp
parent646fbb628aa1e19a19d02a3ad8abf24146fe5a12 (diff)
downloadopenttd-cc658392ebef76ca21efc7c3ab1aaaa93c50448e.tar.xz
(svn r20573) -Codechange: free/reserve some bits in the sell vehicle command to increase the vehicle pool limit
Diffstat (limited to 'src/train_gui.cpp')
-rw-r--r--src/train_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/train_gui.cpp b/src/train_gui.cpp
index 35bd1d266..87e6fe622 100644
--- a/src/train_gui.cpp
+++ b/src/train_gui.cpp
@@ -43,7 +43,7 @@ void CcBuildWagon(const CommandCost &result, TileIndex tile, uint32 p1, uint32 p
if (found != NULL) {
found = found->Last();
/* put the new wagon at the end of the loco. */
- DoCommandP(0, _new_vehicle_id | (found->index << 16), 0, CMD_MOVE_RAIL_VEHICLE);
+ DoCommandP(0, _new_vehicle_id, found->index, CMD_MOVE_RAIL_VEHICLE);
InvalidateWindowClassesData(WC_TRAINS_LIST, 0);
}
}