Cleanup: Use std::vector in RandomSpriteGroup.

(cherry picked from commit 913d8a7f28)
This commit is contained in:
Peter Nelson
2021-05-02 00:00:40 +01:00
committed by Jonathan G Rennison
parent a69a1d19a9
commit f5722a999e
3 changed files with 6 additions and 14 deletions

View File

@@ -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;