diff options
author | smatz <smatz@openttd.org> | 2008-05-27 00:13:51 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-05-27 00:13:51 +0000 |
commit | e4243679385bcf13dff0fc6a61b90d1a1774aa97 (patch) | |
tree | 15f488a650b9fb0180c95eff41727029073425fc /src/group_gui.cpp | |
parent | a7761332f6c7170388d3f8542ef680e0f509735e (diff) | |
download | openttd-e4243679385bcf13dff0fc6a61b90d1a1774aa97.tar.xz |
(svn r13280) -Fix (r13276): MSVC compilation was broken
Diffstat (limited to 'src/group_gui.cpp')
-rw-r--r-- | src/group_gui.cpp | 4 |
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()); |