diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp --- a/src/rail_gui.cpp +++ b/src/rail_gui.cpp @@ -2384,7 +2384,7 @@ DropDownList GetRailTypeDropDownList(boo } } - if (list.size() == 0) { + if (list.empty()) { /* Empty dropdowns are not allowed */ list.push_back(std::make_unique(STR_NONE, INVALID_RAILTYPE, true)); }