summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2006-09-30 19:21:39 +0000
committerglx <glx@openttd.org>2006-09-30 19:21:39 +0000
commitc0d971906eaad7524eaf7659f12891e1895ffced (patch)
tree952f551b54719ed1c1267263d75133be26ad4b0a
parentdf5d5b6db29af8821d26dae746f048d4748f0fbb (diff)
downloadopenttd-c0d971906eaad7524eaf7659f12891e1895ffced.tar.xz
(svn r6590) -Fix r6588: killed MSVC warnings for real
-rw-r--r--vehicle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vehicle.c b/vehicle.c
index ee32fcaee..34c57c405 100644
--- a/vehicle.c
+++ b/vehicle.c
@@ -2198,7 +2198,7 @@ static int32 MaybeReplaceVehicle(Vehicle *v, bool check, bool display_costs)
static inline void ExtendVehicleListSize(const Vehicle ***engine_list, uint16 *engine_list_length, uint16 step_size)
{
*engine_list_length = min(*engine_list_length + step_size, GetVehicleArraySize());
- *engine_list = (const Vehicle**)realloc(*engine_list, (*engine_list_length) * sizeof((*engine_list)[0]));
+ *engine_list = realloc((void*)*engine_list, (*engine_list_length) * sizeof((*engine_list)[0]));
}
/** Generates a list of vehicles inside a depot
@@ -2375,7 +2375,7 @@ uint GenerateVehicleSortList(const Vehicle ***sort_list, uint16 *length_of_array
* We will still make it have room for 50 extra vehicles to prevent having
* to move the whole array if just one vehicle is added later */
*length_of_array = n + 50;
- *sort_list = (const Vehicle**)realloc(*sort_list, (*length_of_array) * sizeof((*sort_list)[0]));
+ *sort_list = realloc((void*)*sort_list, (*length_of_array) * sizeof((*sort_list)[0]));
}
return n;