mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-13 07:10:57 +00:00
(svn r24168) -Codechange: Simplify default station class instantiation.
This commit is contained in:
parent
c841a78f69
commit
6d9a0ff723
@ -33,15 +33,11 @@ template <typename Tspec, typename Tid, Tid Tmax>
|
||||
/* Set up initial data */
|
||||
classes[0].global_id = 'DFLT';
|
||||
classes[0].name = STR_STATION_CLASS_DFLT;
|
||||
classes[0].count = 1;
|
||||
classes[0].spec = MallocT<StationSpec*>(1);
|
||||
classes[0].spec[0] = NULL;
|
||||
classes[0].Insert(NULL);
|
||||
|
||||
classes[1].global_id = 'WAYP';
|
||||
classes[1].name = STR_STATION_CLASS_WAYP;
|
||||
classes[1].count = 1;
|
||||
classes[1].spec = MallocT<StationSpec*>(1);
|
||||
classes[1].spec[0] = NULL;
|
||||
classes[1].Insert(NULL);
|
||||
}
|
||||
|
||||
INSTANTIATE_NEWGRF_CLASS_METHODS(StationClass, StationSpec, StationClassID, STAT_CLASS_MAX)
|
||||
|
Loading…
Reference in New Issue
Block a user