mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-29 17:39:09 +00:00
(svn r7568) -Fix [r7564]: buf+4 is the same as &buf[4], not buf[4] for a char*.
This commit is contained in:
2
newgrf.c
2
newgrf.c
@@ -2603,7 +2603,7 @@ static void GRFError(byte *buf, int len)
|
||||
}
|
||||
|
||||
sevid = GB(sevid, 0, 2);
|
||||
grfmsg(0, msgstr[(msgid == 0xFF) ? lengthof(msgstr) - 1 : msgid], sevstr[sevid], buf[4]);
|
||||
grfmsg(0, msgstr[(msgid == 0xFF) ? lengthof(msgstr) - 1 : msgid], sevstr[sevid], &buf[4]);
|
||||
}
|
||||
|
||||
/* Action 0x0C */
|
||||
|
Reference in New Issue
Block a user