From 64a67bb63bc047107e38a2990e782ae449e2322a Mon Sep 17 00:00:00 2001 From: Darkvater Date: Tue, 26 Dec 2006 21:48:15 +0000 Subject: [PATCH] (svn r7568) -Fix [r7564]: buf+4 is the same as &buf[4], not buf[4] for a char*. --- newgrf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/newgrf.c b/newgrf.c index be68ff5949..60a16a46b8 100644 --- a/newgrf.c +++ b/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 */