Codechange: Use std::vector for NewGRF station tile sprite layouts.

(cherry picked from commit a3e49178d1)
This commit is contained in:
Peter Nelson
2021-05-01 20:28:23 +01:00
committed by Jonathan G Rennison
parent 72bc8c7595
commit da571d6481
4 changed files with 26 additions and 27 deletions

View File

@@ -119,8 +119,8 @@ enum StationSpecIntlFlags {
/** 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}), internal_flags(0) {}
/**
@@ -152,8 +152,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