From ae378f0fb3f2982cc8341b8f8702d7365e3d6a60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Mon, 11 Jun 2018 14:41:33 -0300 Subject: [PATCH] SITL: Use reinterpret_cast with AP_Param::find_object MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- libraries/SITL/SIM_Aircraft.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/SITL/SIM_Aircraft.cpp b/libraries/SITL/SIM_Aircraft.cpp index 70c7ef54a7..014cc0f28f 100644 --- a/libraries/SITL/SIM_Aircraft.cpp +++ b/libraries/SITL/SIM_Aircraft.cpp @@ -85,7 +85,7 @@ Aircraft::Aircraft(const char *home_str, const char *frame_str) : enum ap_var_type ptype; ahrs_orientation = (AP_Int8 *)AP_Param::find("AHRS_ORIENTATION", &ptype); - terrain = (AP_Terrain *)AP_Param::find_object("TERRAIN_"); + terrain = reinterpret_cast(AP_Param::find_object("TERRAIN_")); }