summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-12-26 21:48:15 +0000
committerDarkvater <darkvater@openttd.org>2006-12-26 21:48:15 +0000
commit64a67bb63bc047107e38a2990e782ae449e2322a (patch)
tree9d6f6cdd86932e423f53eca46fa31e9ba7372371
parent4229d9e545a0112201fb74f56a5dd98455bb78b0 (diff)
downloadopenttd-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newgrf.c b/newgrf.c
index be68ff594..60a16a46b 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 */