From e3cd311d35f85805dd4be95f2c72b2685b10e7f4 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Sun, 16 Apr 2006 20:24:10 +0000 Subject: (svn r4453) - NewGRF: fix two compile warnings. --- newgrf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'newgrf.c') diff --git a/newgrf.c b/newgrf.c index 926f486ea..63aecab5d 100644 --- a/newgrf.c +++ b/newgrf.c @@ -935,7 +935,6 @@ static bool StationChangeInfo(uint stid, int numinfo, int prop, byte **bufp, int l--; p--; - assert(p >= 0); free(stat->layouts[l][p]); stat->layouts[l][p] = layout; } @@ -2096,7 +2095,7 @@ static void GRFComment(byte *buf, int len) static char comment[256]; if (len == 1) return; - ttd_strlcpy(comment, buf + 1, minu(sizeof(comment), len)); + ttd_strlcpy(comment, (char*)(buf + 1), minu(sizeof(comment), len)); grfmsg(GMS_NOTICE, "GRFComment: %s", comment); } -- cgit v1.2.3-54-g00ecf