(svn r13240) -Codechange: More const-ness for GUI code.

This commit is contained in:
peter1138
2008-05-25 09:40:44 +00:00
parent 7672a059c9
commit 0a9e8854ec
4 changed files with 23 additions and 21 deletions

View File

@@ -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 &&