diff options
author | frosch <frosch@openttd.org> | 2010-04-17 13:31:41 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-04-17 13:31:41 +0000 |
commit | 75d4bc947ddbb92ecf660d9a9858c854d5e34a15 (patch) | |
tree | b218a672a78b894388373d2e700e6ad6ebe75b63 /src/rail.cpp | |
parent | 184fa43df2e14c73162e641bc9bc83e403f069ed (diff) | |
download | openttd-75d4bc947ddbb92ecf660d9a9858c854d5e34a15.tar.xz |
(svn r19654) -Codechange: Use Extract<> in more places.
Diffstat (limited to 'src/rail.cpp')
-rw-r--r-- | src/rail.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rail.cpp b/src/rail.cpp index 663753e9f..21ae80661 100644 --- a/src/rail.cpp +++ b/src/rail.cpp @@ -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) |