SITL: Use reinterpret_cast with AP_Param::find_object
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
parent
f68b07df1f
commit
ae378f0fb3
@ -85,7 +85,7 @@ Aircraft::Aircraft(const char *home_str, const char *frame_str) :
|
|||||||
enum ap_var_type ptype;
|
enum ap_var_type ptype;
|
||||||
ahrs_orientation = (AP_Int8 *)AP_Param::find("AHRS_ORIENTATION", &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_"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user