Fix uint8 file_slot in LoadNextSprite
This commit is contained in:
@@ -565,7 +565,7 @@ void ReadGRFSpriteOffsets(byte container_version)
|
|||||||
* @param container_version Container version of the GRF.
|
* @param container_version Container version of the GRF.
|
||||||
* @return True if a valid sprite was loaded, false on any error.
|
* @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();
|
size_t file_pos = FioGetPos();
|
||||||
|
|
||||||
|
@@ -54,7 +54,7 @@ void IncreaseSpriteLRU();
|
|||||||
|
|
||||||
void ReadGRFSpriteOffsets(byte container_version);
|
void ReadGRFSpriteOffsets(byte container_version);
|
||||||
size_t GetGRFSpriteOffset(uint32 id);
|
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);
|
bool SkipSpriteData(byte type, uint16 num);
|
||||||
void DupSprite(SpriteID old_spr, SpriteID new_spr);
|
void DupSprite(SpriteID old_spr, SpriteID new_spr);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user