Fixed bad macro

This commit is contained in:
Graham Pentheny
2025-08-07 16:47:38 -04:00
parent dd22352753
commit b50bfdbb5f

View File

@@ -979,7 +979,7 @@ void Sample_TempObstacles::drawSettingsUI()
void Sample_TempObstacles::drawToolsUI()
{
const SampleToolType currentTool = !tool ? SampleToolType::NONE : tool->type();
#define TOOL(tool, toolType) if (ImGui::RadioButton(toolNames[static_cast<int>(tool), currentTool == tool)) { setTool(new toolType{}); }
#define TOOL(toolType, toolClass) if (ImGui::RadioButton(toolNames[static_cast<int>(SampleToolType::toolType)], currentTool == SampleToolType::toolType)) { setTool(new toolClass{}); }
TOOL(NAVMESH_TESTER, NavMeshTesterTool)
TOOL(TILE_HIGHLIGHT, TempObstacleHighlightTool)
TOOL(TEMP_OBSTACLE, TempObstacleCreateTool)