mirror of https://github.com/ArduPilot/ardupilot
Ap_Terrain: make AP::terrain return a pointer
this is needed for rover and OSD support
This commit is contained in:
parent
5a941ce02f
commit
5e820b203b
|
@ -402,9 +402,9 @@ bool AP_Terrain::allocate(void)
|
|||
|
||||
namespace AP {
|
||||
|
||||
AP_Terrain &terrain()
|
||||
AP_Terrain *terrain()
|
||||
{
|
||||
return *AP_Terrain::get_singleton();
|
||||
return AP_Terrain::get_singleton();
|
||||
}
|
||||
|
||||
};
|
||||
|
|
|
@ -440,7 +440,7 @@ private:
|
|||
};
|
||||
|
||||
namespace AP {
|
||||
AP_Terrain &terrain();
|
||||
AP_Terrain *terrain();
|
||||
};
|
||||
|
||||
#endif // AP_TERRAIN_AVAILABLE
|
||||
|
|
Loading…
Reference in New Issue