diff options
author | Darkvater <Darkvater@openttd.org> | 2006-12-26 21:48:15 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2006-12-26 21:48:15 +0000 |
commit | f4e390d16f474437af6a5bbd37acc2f9dfbf7dae (patch) | |
tree | 9d6f6cdd86932e423f53eca46fa31e9ba7372371 | |
parent | 7110731cb9d08b0b947ed64d1b3cc694bfe2df88 (diff) | |
download | openttd-f4e390d16f474437af6a5bbd37acc2f9dfbf7dae.tar.xz |
(svn r7568) -Fix [r7564]: buf+4 is the same as &buf[4], not buf[4] for a char*.
-rw-r--r-- | newgrf.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |