Plane: change location refence frame correctly

This commit is contained in:
Iampete1 2021-04-07 18:41:53 +01:00 committed by Andrew Tridgell
parent 1a182a52da
commit fd2909d53f
1 changed files with 1 additions and 1 deletions

View File

@ -463,7 +463,7 @@ void Plane::setup_terrain_target_alt(Location &loc) const
{
#if AP_TERRAIN_AVAILABLE
if (terrain_enabled_in_current_mode()) {
loc.terrain_alt = true;
loc.change_alt_frame(Location::AltFrame::ABOVE_TERRAIN);
}
#endif
}