From cedbbc69872a2e9e446fa9770a9631eadf34e756 Mon Sep 17 00:00:00 2001 From: robotcator Date: Wed, 19 Jun 2019 21:25:43 +0800 Subject: [PATCH] fix the static code warning --- .../methods/reinforcement_learning/environment/pendulum.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mlpack/methods/reinforcement_learning/environment/pendulum.hpp b/src/mlpack/methods/reinforcement_learning/environment/pendulum.hpp index 69e3749faf..bfd4cb1105 100644 --- a/src/mlpack/methods/reinforcement_learning/environment/pendulum.hpp +++ b/src/mlpack/methods/reinforcement_learning/environment/pendulum.hpp @@ -82,7 +82,7 @@ class Pendulum */ struct Action { - double action; + double action = 0.0; // Storing degree of freedom const int size = 1; };