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 | 33dc3165beaef6b91d52d76d4497445ca4a04211 (patch) | |
tree | 15f488a650b9fb0180c95eff41727029073425fc /src/group_gui.cpp | |
parent | 691bf297246282158b46fb03793a42f393030fc1 (diff) | |
download | openttd-33dc3165beaef6b91d52d76d4497445ca4a04211.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()); |