From ac6842b0ac87123982b684167d6145bde745bd9d Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 2 Feb 2022 14:28:34 +1100 Subject: [PATCH] ArduSub: stop passing mission in Terrain constructor Terrain can use the mission singleton This means Copter can have terrain while compiling mission out --- ArduSub/Sub.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduSub/Sub.h b/ArduSub/Sub.h index 00478b8e8b..8dafad4c51 100644 --- a/ArduSub/Sub.h +++ b/ArduSub/Sub.h @@ -363,7 +363,7 @@ private: // terrain handling #if AP_TERRAIN_AVAILABLE - AP_Terrain terrain{mission}; + AP_Terrain terrain; #endif // used to allow attitude and depth control without a position system