diff --git a/HopsanCore/include/Component.h b/HopsanCore/include/Component.h index f0ada2ba6..d09a84d05 100644 --- a/HopsanCore/include/Component.h +++ b/HopsanCore/include/Component.h @@ -276,7 +276,7 @@ class HOPSANCORE_DLLAPI Component ComponentSystem* mpSystemParent; bool mInheritTimestep; double mTimestep, mDesiredTimestep; - double mTime; + double mTime = 0; size_t mModelHierarchyDepth; //!< This variable contains the depth of the system in the model hierarchy, (used by connect to figure out where to store nodes) std::vector mSearchPaths;