summaryrefslogtreecommitdiff
path: root/src/group_gui.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-05-27 00:13:51 +0000
committersmatz <smatz@openttd.org>2008-05-27 00:13:51 +0000
commite4243679385bcf13dff0fc6a61b90d1a1774aa97 (patch)
tree15f488a650b9fb0180c95eff41727029073425fc /src/group_gui.cpp
parenta7761332f6c7170388d3f8542ef680e0f509735e (diff)
downloadopenttd-e4243679385bcf13dff0fc6a61b90d1a1774aa97.tar.xz
(svn r13280) -Fix (r13276): MSVC compilation was broken
Diffstat (limited to 'src/group_gui.cpp')
-rw-r--r--src/group_gui.cpp4
1 files changed, 2 insertions, 2 deletions
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());