From 34c594f01e1f647a96f5814408a0b25cb9d22ceb Mon Sep 17 00:00:00 2001 From: elsid Date: Sat, 16 Feb 2019 15:39:06 +0300 Subject: [PATCH] Add default initializators for settings fields --- components/detournavigator/settings.hpp | 52 ++++++++++++------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/components/detournavigator/settings.hpp b/components/detournavigator/settings.hpp index f4073b24b2..dda193fff1 100644 --- a/components/detournavigator/settings.hpp +++ b/components/detournavigator/settings.hpp @@ -7,32 +7,32 @@ namespace DetourNavigator { struct Settings { - bool mEnableWriteRecastMeshToFile; - bool mEnableWriteNavMeshToFile; - bool mEnableRecastMeshFileNameRevision; - bool mEnableNavMeshFileNameRevision; - float mCellHeight; - float mCellSize; - float mDetailSampleDist; - float mDetailSampleMaxError; - float mMaxClimb; - float mMaxSimplificationError; - float mMaxSlope; - float mRecastScaleFactor; - float mSwimHeightScale; - int mBorderSize; - int mMaxEdgeLen; - int mMaxNavMeshQueryNodes; - int mMaxPolys; - int mMaxVertsPerPoly; - int mRegionMergeSize; - int mRegionMinSize; - int mTileSize; - std::size_t mAsyncNavMeshUpdaterThreads; - std::size_t mMaxNavMeshTilesCacheSize; - std::size_t mMaxPolygonPathSize; - std::size_t mMaxSmoothPathSize; - std::size_t mTrianglesPerChunk; + bool mEnableWriteRecastMeshToFile = false; + bool mEnableWriteNavMeshToFile = false; + bool mEnableRecastMeshFileNameRevision = false; + bool mEnableNavMeshFileNameRevision = false; + float mCellHeight = 0; + float mCellSize = 0; + float mDetailSampleDist = 0; + float mDetailSampleMaxError = 0; + float mMaxClimb = 0; + float mMaxSimplificationError = 0; + float mMaxSlope = 0; + float mRecastScaleFactor = 0; + float mSwimHeightScale = 0; + int mBorderSize = 0; + int mMaxEdgeLen = 0; + int mMaxNavMeshQueryNodes = 0; + int mMaxPolys = 0; + int mMaxVertsPerPoly = 0; + int mRegionMergeSize = 0; + int mRegionMinSize = 0; + int mTileSize = 0; + std::size_t mAsyncNavMeshUpdaterThreads = 0; + std::size_t mMaxNavMeshTilesCacheSize = 0; + std::size_t mMaxPolygonPathSize = 0; + std::size_t mMaxSmoothPathSize = 0; + std::size_t mTrianglesPerChunk = 0; std::string mRecastMeshPathPrefix; std::string mNavMeshPathPrefix; };