From 803d250bb6a2c6304ca1d92866caf3fd98425906 Mon Sep 17 00:00:00 2001 From: epezent Date: Sun, 16 Aug 2020 18:48:09 -0500 Subject: [PATCH] bug in debug mode --- implot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/implot.cpp b/implot.cpp index 35ce46a..dc1cf90 100644 --- a/implot.cpp +++ b/implot.cpp @@ -1511,7 +1511,7 @@ ImPlotInputMap& GetInputMap() { } void SetNextPlotLimits(double x_min, double x_max, double y_min, double y_max, ImGuiCond cond) { - IM_ASSERT_USER_ERROR(gp.CurrentPlot == NULL, "SetNextPlotLimits() needs to be called before BeginPlot()!"); + IM_ASSERT_USER_ERROR(GImPlot->CurrentPlot == NULL, "SetNextPlotLimits() needs to be called before BeginPlot()!"); SetNextPlotLimitsX(x_min, x_max, cond); SetNextPlotLimitsY(y_min, y_max, cond); }