瀏覽代碼

Fix compilation error.

Former-commit-id: 9931f11b709c9102f342312de0e1584c0b69a99d
Jérémie Dumas 7 年之前
父節點
當前提交
5e32e2d3d8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/igl/opengl/glfw/Viewer.cpp

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