mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
Codechange: Re-order ResultSpriteGroup to reduce its size.
This commit is contained in:
parent
db0ae42d45
commit
70d63f87b8
@ -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; }
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user