diff options
Diffstat (limited to 'src/vehicle_gui.cpp')
-rw-r--r-- | src/vehicle_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index e1cc4aef0..57bb893b1 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -144,7 +144,7 @@ static RefitList *BuildRefitList(const Vehicle *v) uint max_lines = 256; RefitOption *refit = CallocT<RefitOption>(max_lines); RefitList *list = CallocT<RefitList>(1); - Vehicle *u = (Vehicle*)v; + Vehicle *u = const_cast<Vehicle *>(v); uint num_lines = 0; uint i; |