SITL: Use reinterpret_cast with AP_Param::find_object

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
Patrick José Pereira 2018-06-11 14:41:33 -03:00 committed by Francisco Ferreira
parent f68b07df1f
commit ae378f0fb3

View File

@ -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_Terrain *>(AP_Param::find_object("TERRAIN_"));
}