Cleanup: Use std::vector in DeterministicSpriteGroup.

(cherry picked from commit 1aeaf39954)
This commit is contained in:
Peter Nelson
2021-05-02 00:00:06 +01:00
committed by Jonathan G Rennison
parent d3b9d19c5a
commit a69a1d19a9
3 changed files with 13 additions and 36 deletions

View File

@@ -166,15 +166,12 @@ struct DeterministicSpriteGroupRange {
struct DeterministicSpriteGroup : SpriteGroup {
DeterministicSpriteGroup() : SpriteGroup(SGT_DETERMINISTIC) {}
~DeterministicSpriteGroup();
VarSpriteGroupScope var_scope;
DeterministicSpriteGroupSize size;
uint num_adjusts;
uint num_ranges;
bool calculated_result;
DeterministicSpriteGroupAdjust *adjusts;
DeterministicSpriteGroupRange *ranges; // Dynamically allocated
std::vector<DeterministicSpriteGroupAdjust> adjusts;
std::vector<DeterministicSpriteGroupRange> ranges; // Dynamically allocated
/* Dynamically allocated, this is the sole owner */
const SpriteGroup *default_group;