Эх сурвалжийг харах

Fix compilation error.

Former-commit-id: 9931f11b709c9102f342312de0e1584c0b69a99d
Jérémie Dumas 7 жил өмнө
parent
commit
5e32e2d3d8

+ 1 - 1
include/igl/opengl/glfw/Viewer.cpp

@@ -1070,7 +1070,7 @@ namespace glfw
 
   IGL_INLINE bool Viewer::erase_mesh(const size_t index)
   {
-    assert((i >= 0 && i < data_list.size()) && "index should be in bounds");
+    assert((index >= 0 && index < data_list.size()) && "index should be in bounds");
     assert(data_list.size() >= 1);
     if(data_list.size() == 1)
     {