mirror of https://github.com/OpenTTD/OpenTTD
(svn r7568) -Fix [r7564]: buf+4 is the same as &buf[4], not buf[4] for a char*.
parent
4229d9e545
commit
64a67bb63b
2
newgrf.c
2
newgrf.c
|
@ -2603,7 +2603,7 @@ static void GRFError(byte *buf, int len)
|
||||||
}
|
}
|
||||||
|
|
||||||
sevid = GB(sevid, 0, 2);
|
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 */
|
/* Action 0x0C */
|
||||||
|
|
Loading…
Reference in New Issue