From 4b0f9c9495124f2ce1210673d87890dbdce14d69 Mon Sep 17 00:00:00 2001 From: epezent Date: Wed, 24 Mar 2021 22:28:35 -0600 Subject: [PATCH] fix debug build error --- implot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/implot.cpp b/implot.cpp index a10139c..365a1ac 100644 --- a/implot.cpp +++ b/implot.cpp @@ -2770,7 +2770,7 @@ ImPlotLimits GetPlotQuery(ImPlotYAxis y_axis) { void SetPlotQuery(const ImPlotLimits& query, ImPlotYAxis y_axis) { ImPlotContext& gp = *GImPlot; - IM_ASSERT_USER_ERROR(y_axis_in >= -1 && y_axis_in < IMPLOT_Y_AXES, "y_axis needs to between -1 and IMPLOT_Y_AXES"); + IM_ASSERT_USER_ERROR(y_axis >= -1 && y_axis < IMPLOT_Y_AXES, "y_axis needs to between -1 and IMPLOT_Y_AXES"); IM_ASSERT_USER_ERROR(gp.CurrentPlot != NULL, "GetPlotQuery() needs to be called between BeginPlot() and EndPlot()!"); ImPlotPlot& plot = *gp.CurrentPlot; y_axis = y_axis >= 0 ? y_axis : gp.CurrentPlot->CurrentYAxis;