diff -r 00730ec6d8c8 -r ebe68d6899b6 src/bridge_gui.cpp --- a/src/bridge_gui.cpp Mon Feb 11 03:22:44 2008 +0000 +++ b/src/bridge_gui.cpp Mon Feb 11 04:12:30 2008 +0000 @@ -26,7 +26,7 @@ TileIndex start_tile; TileIndex end_tile; uint8 type; - uint8 indexes[MAX_BRIDGES]; + BridgeType indexes[MAX_BRIDGES]; Money costs[MAX_BRIDGES]; BridgeData() @@ -188,14 +188,14 @@ const uint tot_bridgedata_len = CalcBridgeLenCostFactor(bridge_len + 2); /* loop for all bridgetypes */ - for (bridge_type = 0; bridge_type != MAX_BRIDGES; bridge_type++) { - if (CheckBridge_Stuff(bridge_type, bridge_len)) { + for (BridgeType brd_type = 0; brd_type != MAX_BRIDGES; brd_type++) { + if (CheckBridge_Stuff(brd_type, bridge_len)) { /* bridge is accepted, add to list */ - const Bridge *b = GetBridgeSpec(bridge_type); + const Bridge *b = GetBridgeSpec(brd_type); /* Add to terraforming & bulldozing costs the cost of the * bridge itself (not computed with DC_QUERY_COST) */ _bridgedata.costs[j] = ret.GetCost() + (((int64)tot_bridgedata_len * _price.build_bridge * b->price) >> 8); - _bridgedata.indexes[j] = bridge_type; + _bridgedata.indexes[j] = brd_type; j++; } }