unknown 9 سال پیش
والد
کامیت
9db55ad918
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/ofxPlotter.h

+ 1 - 1
src/ofxPlotter.h

@@ -92,7 +92,7 @@ public:
     }
     
     float getHistoryFor(std::string index, int step) {
-        return history[index][history[index].size() - step].getF();
+        return history[index][history[index].size() - 1 - step].getF();
     }
     
     void drawOverlay(float x, float y, float width, float height) {