changeset 3571:c279a48e1d09 draft

(svn r4453) - NewGRF: fix two compile warnings.
author peter1138 <peter1138@openttd.org>
date Sun, 16 Apr 2006 20:24:10 +0000
parents 4c86acd316ea
children e8a4d45e3ea0
files newgrf.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/newgrf.c
+++ b/newgrf.c
@@ -935,7 +935,6 @@
 
 					l--;
 					p--;
-					assert(p >= 0);
 					free(stat->layouts[l][p]);
 					stat->layouts[l][p] = layout;
 				}
@@ -2096,7 +2095,7 @@
 	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);
 }