town_gui.c
changeset 4354 684ab9249dae
parent 4346 3f00094f2670
child 4416 e0e9a72882d0
--- a/town_gui.c	Tue Aug 22 20:39:18 2006 +0000
+++ b/town_gui.c	Tue Aug 22 20:41:26 2006 +0000
@@ -410,7 +410,7 @@
 	uint n = 0;
 
 	/* Create array for sorting */
-	_town_sort = realloc((void*)_town_sort, GetTownPoolSize() * sizeof(_town_sort[0]));
+	_town_sort = realloc((void*)_town_sort, GetTownArraySize() * sizeof(_town_sort[0]));
 	if (_town_sort == NULL)
 		error("Could not allocate memory for the town-sorting-list");