Inline field initializers in Sample class

This commit is contained in:
Graham Pentheny
2025-05-23 00:06:29 -04:00
parent 4a505c0afe
commit cc7243eeee
2 changed files with 11 additions and 20 deletions

View File

@@ -65,17 +65,8 @@ unsigned int SampleDebugDraw::areaToCol(unsigned int area)
}
}
Sample::Sample() :
m_inputGeometry(0),
m_navMesh(0),
m_navQuery(0),
m_crowd(0),
m_navMeshDrawFlags(DU_DRAWNAVMESH_OFFMESHCONS|DU_DRAWNAVMESH_CLOSEDLIST),
m_filterLowHangingObstacles(true),
m_filterLedgeSpans(true),
m_filterWalkableLowHeightSpans(true),
m_tool(0),
m_buildContext(0)
Sample::Sample()
: m_navMeshDrawFlags(DU_DRAWNAVMESH_OFFMESHCONS|DU_DRAWNAVMESH_CLOSEDLIST)
{
resetCommonSettings();
m_navQuery = dtAllocNavMeshQuery();