Fix uint8 file_slot in LoadNextSprite

This commit is contained in:
Jonathan G Rennison
2019-01-14 18:45:57 +00:00
parent d489ee5d9c
commit 3f03d03d92
2 changed files with 2 additions and 2 deletions

View File

@@ -565,7 +565,7 @@ void ReadGRFSpriteOffsets(byte container_version)
* @param container_version Container version of the GRF.
* @return True if a valid sprite was loaded, false on any error.
*/
bool LoadNextSprite(int load_index, byte file_slot, uint file_sprite_id, byte container_version)
bool LoadNextSprite(int load_index, uint file_slot, uint file_sprite_id, byte container_version)
{
size_t file_pos = FioGetPos();

View File

@@ -54,7 +54,7 @@ void IncreaseSpriteLRU();
void ReadGRFSpriteOffsets(byte container_version);
size_t GetGRFSpriteOffset(uint32 id);
bool LoadNextSprite(int load_index, byte file_index, uint file_sprite_id, byte container_version);
bool LoadNextSprite(int load_index, uint file_index, uint file_sprite_id, byte container_version);
bool SkipSpriteData(byte type, uint16 num);
void DupSprite(SpriteID old_spr, SpriteID new_spr);