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
commitf4e390d16f474437af6a5bbd37acc2f9dfbf7dae (patch)
tree9d6f6cdd86932e423f53eca46fa31e9ba7372371
parent7110731cb9d08b0b947ed64d1b3cc694bfe2df88 (diff)
downloadopenttd-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.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 */