From e4243679385bcf13dff0fc6a61b90d1a1774aa97 Mon Sep 17 00:00:00 2001 From: smatz Date: Tue, 27 May 2008 00:13:51 +0000 Subject: (svn r13280) -Fix (r13276): MSVC compilation was broken --- src/group_gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/group_gui.cpp') diff --git a/src/group_gui.cpp b/src/group_gui.cpp index 27ac42cd9..1896b2a1d 100644 --- a/src/group_gui.cpp +++ b/src/group_gui.cpp @@ -147,7 +147,7 @@ private: } /** 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 @@ public: SortVehicleList(this); this->BuildGroupList(owner); - this->groups.Sort(GroupNameSorter); + this->groups.Sort(&GroupNameSorter); SetVScrollCount(this, this->groups.Length()); SetVScroll2Count(this, this->vehicles.Length()); -- cgit v1.2.3-54-g00ecf