diff -r bed4e8a213d9 -r afdc4beedc99 src/group_gui.cpp --- 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());