1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-24 12:44:10 +01:00

Codefix: Use SpriteID when passing sprite IDs. (#13037)

This commit is contained in:
Peter Nelson
2024-10-27 18:54:49 +00:00
committed by GitHub
parent e1697a6ad1
commit e076aaf740
6 changed files with 14 additions and 14 deletions

View File

@@ -43,10 +43,10 @@ static const SpriteID * const _landscape_spriteindexes[] = {
* @param needs_palette_remap Whether the colours in the GRF file need a palette remap.
* @return The number of loaded sprites.
*/
static uint LoadGrfFile(const std::string &filename, uint load_index, bool needs_palette_remap)
static uint LoadGrfFile(const std::string &filename, SpriteID load_index, bool needs_palette_remap)
{
uint load_index_org = load_index;
uint sprite_id = 0;
SpriteID load_index_org = load_index;
SpriteID sprite_id = 0;
SpriteFile &file = OpenCachedSpriteFile(filename, BASESET_DIR, needs_palette_remap);