src/settings.cpp
changeset 5609 dc6a58930ba4
parent 5601 d58f82901b2f
child 5688 c4ba40106d5d
--- a/src/settings.cpp	Thu Jan 11 15:30:35 2007 +0000
+++ b/src/settings.cpp	Thu Jan 11 17:29:39 2007 +0000
@@ -236,7 +236,7 @@
 			if (ns > a) {
 				a = max(a, 128U);
 				do a*=2; while (a < ns);
-				ReallocT(&comment, comment_alloc = a);
+				comment = ReallocT(comment, comment_alloc = a);
 			}
 			pos = comment_size;
 			comment_size += (e - s + 1);
@@ -1509,8 +1509,7 @@
 	if (group == NULL) return NULL;
 
 	for (item = group->item; item != NULL; item = item->next) {
-		GRFConfig *c;
-		CallocT(&c, 1);
+		GRFConfig *c = CallocT<GRFConfig>(1);
 		c->filename = strdup(item->name);
 
 		/* Parse parameters */