Browse Source

fix for mysterious assertion failure in MSVS 2010, from community member swx.

David Rose 15 years ago
parent
commit
40b8521245
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/egg/eggMesherStrip.cxx

+ 1 - 1
panda/src/egg/eggMesherStrip.cxx

@@ -359,7 +359,7 @@ cut_sheet(int first_row_id, int do_mate, const EggVertexPool *vertex_pool) {
       not_any = true;
       not_any = true;
 
 
       ei = _edges.begin();
       ei = _edges.begin();
-      while (ei != _edges.end() && not_any) {
+      while (not_any && ei != _edges.end()) {
         EggMesherEdge::Strips &strips = (*ei)->_strips;
         EggMesherEdge::Strips &strips = (*ei)->_strips;
         si = strips.begin();
         si = strips.begin();
         while (si != strips.end() && not_any) {
         while (si != strips.end() && not_any) {