Pārlūkot izejas kodu

workaround for a compiler bug with Win64

Chris Brunner 15 gadi atpakaļ
vecāks
revīzija
74f0849d7e
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 3 3
      panda/src/egg/eggSAnimData.cxx

+ 3 - 3
panda/src/egg/eggSAnimData.cxx

@@ -39,9 +39,9 @@ optimize() {
     }
 
     // Ok, all the rows had the same value.  Collapse them.
-	if(!_data.empty()){
-		_data.erase(_data.begin() + 1, _data.end());
-	}
+
+    // We have to use the call to v() to work around an apparent compiler bug with Win64.
+    _data.v().erase(_data.v().begin() + 1, _data.v().end());
   }
 }