summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-08-03 08:20:04 +0000
committerrubidium <rubidium@openttd.org>2008-08-03 08:20:04 +0000
commit13dee60ae1a37194a26b1a058d88ebe409df5fff (patch)
tree2256fb521ae5abacebb4653f2bb501523a72a1a7 /src
parent96892e081a61b2f46bb94a41d6e2b39359b789e7 (diff)
downloadopenttd-13dee60ae1a37194a26b1a058d88ebe409df5fff.tar.xz
(svn r13971) -Fix [YAPP]: segfault due to mixed up variables (michi_cc)
Diffstat (limited to 'src')
-rw-r--r--src/train_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp
index 0fdac279d..efdbd5c2a 100644
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -3027,7 +3027,7 @@ static Track ChooseTrainTrack(Vehicle* v, TileIndex tile, DiagDirection enterdir
* @param v The vehicle
* @return True if a path could be reserved
*/
-bool TryPathReserve(Vehicle *v, bool first_tile_okay, bool mark_as_stuck)
+bool TryPathReserve(Vehicle *v, bool mark_as_stuck, bool first_tile_okay)
{
assert(v->type == VEH_TRAIN && IsFrontEngine(v));