(svn r4453) - NewGRF: fix two compile warnings.
authorpeter1138
Sun, 16 Apr 2006 20:24:10 +0000
changeset 3571 441ad6b656f1
parent 3570 f9749bae861e
child 3572 d3df29ccda88
(svn r4453) - NewGRF: fix two compile warnings.
newgrf.c
--- a/newgrf.c	Sun Apr 16 18:57:07 2006 +0000
+++ b/newgrf.c	Sun Apr 16 20:24:10 2006 +0000
@@ -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);
 }