diff options
author | Peter Nelson <peter1138@openttd.org> | 2021-05-02 00:00:40 +0100 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2021-05-02 09:41:01 +0100 |
commit | 913d8a7f28cade14577fc147e3bb42fa7d75cad7 (patch) | |
tree | 92cdfc018ca008e6ffd10aca4d74c20e8b024174 /src/newgrf_spritegroup.h | |
parent | 1aeaf399541c229973b576f2f2423fa8c4b49f65 (diff) | |
download | openttd-913d8a7f28cade14577fc147e3bb42fa7d75cad7.tar.xz |
Cleanup: Use std::vector in RandomSpriteGroup.
Diffstat (limited to 'src/newgrf_spritegroup.h')
-rw-r--r-- | src/newgrf_spritegroup.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/newgrf_spritegroup.h b/src/newgrf_spritegroup.h index e91987dbb..b17266761 100644 --- a/src/newgrf_spritegroup.h +++ b/src/newgrf_spritegroup.h @@ -189,7 +189,6 @@ enum RandomizedSpriteGroupCompareMode { struct RandomizedSpriteGroup : SpriteGroup { RandomizedSpriteGroup() : SpriteGroup(SGT_RANDOMIZED) {} - ~RandomizedSpriteGroup(); VarSpriteGroupScope var_scope; ///< Take this object: @@ -198,9 +197,8 @@ struct RandomizedSpriteGroup : SpriteGroup { byte count; byte lowest_randbit; ///< Look for this in the per-object randomized bitmask: - byte num_groups; ///< must be power of 2 - const SpriteGroup **groups; ///< Take the group with appropriate index: + std::vector<const SpriteGroup *> groups; ///< Take the group with appropriate index: protected: const SpriteGroup *Resolve(ResolverObject &object) const; |