diff options
author | frosch <frosch@openttd.org> | 2012-04-22 16:28:19 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-04-22 16:28:19 +0000 |
commit | c841a78f69370c2bf806cbe6c89b58ed8efc0bac (patch) | |
tree | 501e95f7bb5aabfc5fec171feeda7052a35a2751 /src/station_cmd.cpp | |
parent | 0f0e7e43cf09c0ff82e4119b08956670160aaa58 (diff) | |
download | openttd-c841a78f69370c2bf806cbe6c89b58ed8efc0bac.tar.xz |
(svn r24167) -Codechange: Rename NewGRFClass::GetCount() to NewGRFClass::GetClassCount()
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r-- | src/station_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 254f0d346..5a56d7a45 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -1105,7 +1105,7 @@ CommandCost CmdBuildRailStation(TileIndex tile_org, DoCommandFlag flags, uint32 if (!ValParamRailtype(rt)) return CMD_ERROR; /* Check if the given station class is valid */ - if ((uint)spec_class >= StationClass::GetCount() || spec_class == STAT_CLASS_WAYP) return CMD_ERROR; + if ((uint)spec_class >= StationClass::GetClassCount() || spec_class == STAT_CLASS_WAYP) return CMD_ERROR; if (spec_index >= StationClass::Get(spec_class)->GetSpecCount()) return CMD_ERROR; if (plat_len == 0 || numtracks == 0) return CMD_ERROR; |