summaryrefslogtreecommitdiff
path: root/src/newgrf_class_func.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-04-22 16:28:19 +0000
committerfrosch <frosch@openttd.org>2012-04-22 16:28:19 +0000
commitc841a78f69370c2bf806cbe6c89b58ed8efc0bac (patch)
tree501e95f7bb5aabfc5fec171feeda7052a35a2751 /src/newgrf_class_func.h
parent0f0e7e43cf09c0ff82e4119b08956670160aaa58 (diff)
downloadopenttd-c841a78f69370c2bf806cbe6c89b58ed8efc0bac.tar.xz
(svn r24167) -Codechange: Rename NewGRFClass::GetCount() to NewGRFClass::GetClassCount()
Diffstat (limited to 'src/newgrf_class_func.h')
-rw-r--r--src/newgrf_class_func.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf_class_func.h b/src/newgrf_class_func.h
index 03c82a8d6..9bcb6b3c9 100644
--- a/src/newgrf_class_func.h
+++ b/src/newgrf_class_func.h
@@ -109,7 +109,7 @@ NewGRFClass<Tspec, Tid, Tmax> *NewGRFClass<Tspec, Tid, Tmax>::Get(Tid cls_id)
* Get the number of allocated classes.
* @return The number of classes.
*/
-DEFINE_NEWGRF_CLASS_METHOD(uint)::GetCount()
+DEFINE_NEWGRF_CLASS_METHOD(uint)::GetClassCount()
{
uint i;
for (i = 0; i < Tmax && classes[i].global_id != 0; i++) {}
@@ -162,6 +162,6 @@ DEFINE_NEWGRF_CLASS_METHOD(const Tspec *)::GetByGrf(uint32 grfid, byte local_id,
template void name::Insert(Tspec *spec); \
template void name::Assign(Tspec *spec); \
template NewGRFClass<Tspec, Tid, Tmax> *name::Get(Tid cls_id); \
- template uint name::GetCount(); \
+ template uint name::GetClassCount(); \
template const Tspec *name::GetSpec(uint index) const; \
template const Tspec *name::GetByGrf(uint32 grfid, byte localidx, int *index);