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) {