(svn r19654) -Codechange: Use Extract<> in more places.

This commit is contained in:
frosch
2010-04-17 13:31:41 +00:00
parent 83bcde6da4
commit ed80045221
24 changed files with 87 additions and 63 deletions

View File

@@ -181,7 +181,7 @@ bool HasRailtypeAvail(const CompanyID company, const RailType railtype)
bool ValParamRailtype(const RailType rail)
{
return HasRailtypeAvail(_current_company, rail);
return rail < RAILTYPE_END && HasRailtypeAvail(_current_company, rail);
}
RailType GetBestRailtype(const CompanyID company)