From d9805b46b91a16daf53658c6fe37f5568e32e0cc Mon Sep 17 00:00:00 2001 From: peter1138 Date: Sun, 25 May 2008 09:40:44 +0000 Subject: (svn r13240) -Codechange: More const-ness for GUI code. --- src/train_gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/train_gui.cpp') diff --git a/src/train_gui.cpp b/src/train_gui.cpp index d95d84dd6..3e516a4e3 100644 --- a/src/train_gui.cpp +++ b/src/train_gui.cpp @@ -28,8 +28,8 @@ void CcBuildWagon(bool success, TileIndex tile, uint32 p1, uint32 p2) if (!success) return; /* find a locomotive in the depot. */ - Vehicle *found = NULL; - Vehicle *v; + const Vehicle *found = NULL; + const Vehicle *v; FOR_ALL_VEHICLES(v) { if (v->type == VEH_TRAIN && IsFrontEngine(v) && v->tile == tile && -- cgit v1.2.3-54-g00ecf