Browse Source

fix EggVertexPool::create_unique_vertex()

David Rose 21 years ago
parent
commit
2a92b0e512
1 changed files with 2 additions and 2 deletions
  1. 2 2
      panda/src/egg/eggVertex.cxx

+ 2 - 2
panda/src/egg/eggVertex.cxx

@@ -322,7 +322,7 @@ sorts_less_than(const EggVertex &other) const {
   // Merge-compare the uv maps.
   UVMap::const_iterator ai, bi;
   ai = _uv_map.begin();
-  bi = other._uv_map.end();
+  bi = other._uv_map.begin();
   while (ai != _uv_map.end() && bi != other._uv_map.end()) {
     if ((*ai).first < (*bi).first) {
       return true;
@@ -339,7 +339,7 @@ sorts_less_than(const EggVertex &other) const {
     ++ai;
     ++bi;
   }
-  if (bi != _uv_map.end()) {
+  if (bi != other._uv_map.end()) {
     return true;
   }
   if (ai != _uv_map.end()) {