Преглед на файлове

interrogate: fix uninitialized var, fixes sporadic nb_true_divide

This was a regression introduced by fa6c066b2f21856036cb24d482a7152406c6c2e2 (which in turn fixed #529)
rdb преди 6 години
родител
ревизия
a634e729c8
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      dtool/src/interrogate/interfaceMakerPythonNative.h

+ 1 - 1
dtool/src/interrogate/interfaceMakerPythonNative.h

@@ -121,7 +121,7 @@ private:
   public:
   public:
     std::string _answer_location;
     std::string _answer_location;
     WrapperType _wrapper_type;
     WrapperType _wrapper_type;
-    int _min_version;
+    int _min_version = 0;
     std::string _wrapper_name;
     std::string _wrapper_name;
     std::set<FunctionRemap*> _remaps;
     std::set<FunctionRemap*> _remaps;
     bool _keep_method;
     bool _keep_method;