changeset 10022:6c4f41ba73e5 draft

(svn r14181) -Fix (r14175): Rail types are not road types
author peter1138 <peter1138@openttd.org>
date Thu, 28 Aug 2008 19:22:03 +0000
parents db366601bcaa
children d8894068dd04
files src/toolbar_gui.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/toolbar_gui.cpp
+++ b/src/toolbar_gui.cpp
@@ -618,7 +618,7 @@
 		if (rt == ROADTYPE_HWAY) continue;
 
 		/* The standard road button is *always* available */
-		list->push_back(new DropDownListStringItem(STR_180A_ROAD_CONSTRUCTION + rt, rt, !(HasBit(p->avail_railtypes, rt) || rt == ROADTYPE_ROAD)));
+		list->push_back(new DropDownListStringItem(STR_180A_ROAD_CONSTRUCTION + rt, rt, !(HasBit(p->avail_roadtypes, rt) || rt == ROADTYPE_ROAD)));
 	}
 	ShowDropDownList(w, list, _last_built_roadtype, TBN_ROADS, 140, true, true);
 	SndPlayFx(SND_15_BEEP);