Fix attempts to recolour signal sprites from GRFs.
This commit is contained in:
@@ -40,6 +40,9 @@ static const SpriteID * const _landscape_spriteindexes[] = {
|
||||
_landscape_spriteindexes_toyland,
|
||||
};
|
||||
|
||||
/** file index of first user-added GRF file */
|
||||
int _first_user_grf_file_index;
|
||||
|
||||
/**
|
||||
* Load an old fashioned GRF file.
|
||||
* @param filename The name of the file to open.
|
||||
@@ -224,6 +227,8 @@ static void LoadSpriteTables()
|
||||
|
||||
LoadNewGRF(SPR_NEWGRFS_BASE, i);
|
||||
|
||||
_first_user_grf_file_index = i + 1;
|
||||
|
||||
/* Free and remove the top element. */
|
||||
delete master;
|
||||
_grfconfig = top;
|
||||
|
||||
Reference in New Issue
Block a user