Fix nan issue in features
[trackerpp.git] / src / Tracker.cpp
index 37595b4..2d4f2b0 100644 (file)
@@ -50,7 +50,7 @@ void Tracker::addPatch(PatchPtr p)
 {
     patches.insert(patches.begin(), p);
     if (patches.size() > MaxPatch){
-        patches.erase(patches.end());
+        patches.pop_back();
     }
 }