Add GRF ID/name to "Too many NewGRF string parameters" messages

This commit is contained in:
Jonathan G Rennison
2019-04-17 23:00:57 +01:00
parent 0c3fbecb96
commit 1c0643e419
2 changed files with 41 additions and 6 deletions

View File

@@ -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;