소스 검색

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