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 | 64a67bb63bc047107e38a2990e782ae449e2322a (patch) | |
tree | 9d6f6cdd86932e423f53eca46fa31e9ba7372371 | |
parent | 4229d9e545a0112201fb74f56a5dd98455bb78b0 (diff) | |
download | openttd-64a67bb63bc047107e38a2990e782ae449e2322a.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 */ |