Add GRF ID/name to "Too many NewGRF string parameters" messages
This commit is contained in:
@@ -394,7 +394,7 @@ void CDECL _intl_grfmsg(int severity, const char *str, ...)
|
||||
* @param grfid The grfID to obtain the file for
|
||||
* @return The file.
|
||||
*/
|
||||
static GRFFile *GetFileByGRFID(uint32 grfid)
|
||||
GRFFile *GetFileByGRFID(uint32 grfid)
|
||||
{
|
||||
for (GRFFile * const file : _grf_files) {
|
||||
if (file->grfid == grfid) return file;
|
||||
|
||||
Reference in New Issue
Block a user