summaryrefslogtreecommitdiff
path: root/vehicle_gui.c
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2006-08-15 09:28:27 +0000
committerDarkvater <Darkvater@openttd.org>2006-08-15 09:28:27 +0000
commitb293c7a4e1af0821bb99f9f0bb72fe53e1c35a50 (patch)
tree82fca400d7d38b00d375bbd1db06cd35637c3b39 /vehicle_gui.c
parentea6ab4ce260a2dea7035729df887f7ad7308cf8c (diff)
downloadopenttd-b293c7a4e1af0821bb99f9f0bb72fe53e1c35a50.tar.xz
(svn r5910) Fix some more warnings on MSVC by using (void*) casts. Followup of r5907.
Diffstat (limited to 'vehicle_gui.c')
-rw-r--r--vehicle_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vehicle_gui.c b/vehicle_gui.c
index bfe1adb62..a1bf146a9 100644
--- a/vehicle_gui.c
+++ b/vehicle_gui.c
@@ -182,7 +182,7 @@ void SortVehicleList(vehiclelist_d *vl)
_internal_sort_order = vl->flags & VL_DESC;
_internal_name_sorter_id = STR_SV_TRAIN_NAME;
_last_vehicle = NULL; // used for "cache" in namesorting
- qsort(vl->sort_list, vl->list_length, sizeof(vl->sort_list[0]),
+ qsort((void*)vl->sort_list, vl->list_length, sizeof(vl->sort_list[0]),
_vehicle_sorter[vl->sort_type]);
vl->resort_timer = DAY_TICKS * PERIODIC_RESORT_DAYS;