src/group_gui.cpp
changeset 10730 40906a6f031e
parent 10721 e6c323cb3fac
child 10769 a005e45d1f09
--- a/src/group_gui.cpp	Mon May 26 21:45:57 2008 +0000
+++ b/src/group_gui.cpp	Tue May 27 00:13:51 2008 +0000
@@ -147,7 +147,7 @@
 	}
 
 	/** Sort the groups by their name */
-	static int GroupNameSorter(const Group* const *a, const Group* const *b)
+	static int CDECL GroupNameSorter(const Group* const *a, const Group* const *b)
 	{
 		static const Group *last_group[2] = { NULL, NULL };
 		static char         last_name[2][64] = { "", "" };
@@ -295,7 +295,7 @@
 		SortVehicleList(this);
 
 		this->BuildGroupList(owner);
-		this->groups.Sort(GroupNameSorter);
+		this->groups.Sort(&GroupNameSorter);
 
 		SetVScrollCount(this, this->groups.Length());
 		SetVScroll2Count(this, this->vehicles.Length());