summaryrefslogtreecommitdiff
path: root/src/newgrf_station.h
diff options
context:
space:
mode:
authorPeter Nelson <peter1138@openttd.org>2021-05-01 20:28:23 +0100
committerPeterN <peter@fuzzle.org>2021-05-02 17:15:27 +0100
commita3e49178d1d5d65e3ce91328d743d1642f324961 (patch)
tree26305a3efe359650389fc620bedf58ef1b752a24 /src/newgrf_station.h
parentbd1a20f6eee6758f6a812af18fbe5b41b491b5c4 (diff)
downloadopenttd-a3e49178d1d5d65e3ce91328d743d1642f324961.tar.xz
Codechange: Use std::vector for NewGRF station tile sprite layouts.
Diffstat (limited to 'src/newgrf_station.h')
-rw-r--r--src/newgrf_station.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/newgrf_station.h b/src/newgrf_station.h
index 4c4a5831b..5273625ae 100644
--- a/src/newgrf_station.h
+++ b/src/newgrf_station.h
@@ -112,8 +112,8 @@ enum StationRandomTrigger {
/** Station specification. */
struct StationSpec {
StationSpec() : cls_id(STAT_CLASS_DFLT), name(0),
- disallowed_platforms(0), disallowed_lengths(0), tiles(0),
- renderdata(nullptr), cargo_threshold(0), cargo_triggers(0),
+ disallowed_platforms(0), disallowed_lengths(0),
+ cargo_threshold(0), cargo_triggers(0),
callback_mask(0), flags(0), pylons(0), wires(0), blocked(0),
animation({0, 0, 0, 0}) {}
/**
@@ -145,8 +145,7 @@ struct StationSpec {
* 4-5 = platform with roof, left side
* 6-7 = platform with roof, right side
*/
- uint tiles;
- NewGRFSpriteLayout *renderdata; ///< Array of tile layouts.
+ std::vector<NewGRFSpriteLayout> renderdata; ///< Array of tile layouts.
/**
* Cargo threshold for choosing between little and lots of cargo