From ad7a9bf81ba314d99fbbfa14a131a6f7d94764d9 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Fri, 31 Oct 2014 12:35:39 +0900 Subject: [PATCH] Camera: initialise image_index --- libraries/AP_Camera/AP_Camera.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/AP_Camera/AP_Camera.h b/libraries/AP_Camera/AP_Camera.h index e40340ff35..438a7cd6bd 100644 --- a/libraries/AP_Camera/AP_Camera.h +++ b/libraries/AP_Camera/AP_Camera.h @@ -31,7 +31,8 @@ public: /// Constructor /// AP_Camera(AP_Relay *obj_relay) : - _trigger_counter(0) // count of number of cycles shutter has been held open + _trigger_counter(0), // count of number of cycles shutter has been held open + _image_index(0) { AP_Param::setup_object_defaults(this, var_info); _apm_relay = obj_relay;