diff --git a/RecastDemo/Source/Sample_SoloMesh.cpp b/RecastDemo/Source/Sample_SoloMesh.cpp index 919d57ac..3ba89d84 100644 --- a/RecastDemo/Source/Sample_SoloMesh.cpp +++ b/RecastDemo/Source/Sample_SoloMesh.cpp @@ -112,7 +112,7 @@ void Sample_SoloMesh::drawToolsUI() toolNames[static_cast(SampleToolType::toolType)], \ currentType == SampleToolType::toolType)) \ { \ - setTool(new toolClass{}); \ + setTool(new (toolClass){}); \ } TOOL(NAVMESH_TESTER, NavMeshTesterTool) TOOL(NAVMESH_PRUNE, NavMeshPruneTool)