diff options
Diffstat (limited to 'src/toolbar_gui.cpp')
-rw-r--r-- | src/toolbar_gui.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/toolbar_gui.cpp b/src/toolbar_gui.cpp index a70a79128..5b6793208 100644 --- a/src/toolbar_gui.cpp +++ b/src/toolbar_gui.cpp @@ -628,6 +628,8 @@ static void ToolbarBuildRailClick(Window *w) DropDownList *list = new DropDownList(); for (RailType rt = RAILTYPE_BEGIN; rt != RAILTYPE_END; rt++) { const RailtypeInfo *rti = GetRailTypeInfo(rt); + /* Skip rail type if it has no label */ + if (rti->label == 0) continue; list->push_back(new DropDownListStringItem(rti->strings.menu_text, rt, !HasBit(c->avail_railtypes, rt))); } ShowDropDownList(w, list, _last_built_railtype, TBN_RAILS, 140, true, true); |