summaryrefslogtreecommitdiff
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
commit8b10e70f390e9dafb78411268c7b608118d8fa39 (patch)
tree2256fb521ae5abacebb4653f2bb501523a72a1a7
parent98d8501278a96548c6c583c5d0940f948ea2fcc8 (diff)
downloadopenttd-8b10e70f390e9dafb78411268c7b608118d8fa39.tar.xz
(svn r13971) -Fix [YAPP]: segfault due to mixed up variables (michi_cc)
-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));