Codechange: Re-order ResultSpriteGroup to reduce its size.

This commit is contained in:
Peter Nelson 2024-07-10 12:45:53 +01:00 committed by Peter Nelson
parent db0ae42d45
commit 70d63f87b8

View File

@ -242,13 +242,14 @@ struct ResultSpriteGroup : SpriteGroup {
*/
ResultSpriteGroup(SpriteID sprite, uint8_t num_sprites) :
SpriteGroup(SGT_RESULT),
sprite(sprite),
num_sprites(num_sprites)
num_sprites(num_sprites),
sprite(sprite)
{
}
SpriteID sprite;
uint8_t num_sprites;
SpriteID sprite;
SpriteID GetResult() const override { return this->sprite; }
uint8_t GetNumResults() const override { return this->num_sprites; }
};