Codechange: Use proper enum type to index sprite groups in VariableGRFFileProps.

This commit is contained in:
frosch
2025-04-26 18:57:03 +02:00
committed by frosch
parent 893aa0fb91
commit 41a20e512d
11 changed files with 73 additions and 92 deletions

View File

@@ -74,13 +74,7 @@ struct Engine : EnginePool::PoolItem<&_engine_pool> {
uint16_t list_position = 0;
/* NewGRF related data */
/**
* Properties related the the grf file.
* NUM_CARGO real cargo plus two pseudo cargo sprite groups.
* Used for obtaining the sprite offset of custom sprites, and for
* evaluating callbacks.
*/
VariableGRFFileProps grf_prop{};
CargoGRFFileProps grf_prop{}; ///< Link to NewGRF
std::vector<WagonOverride> overrides{};
std::vector<BadgeID> badges{};