From 74f0849d7e1baddce681c0e42b1eda299a72174e Mon Sep 17 00:00:00 2001 From: Chris Brunner Date: Thu, 27 May 2010 23:50:59 +0000 Subject: [PATCH] workaround for a compiler bug with Win64 --- panda/src/egg/eggSAnimData.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/panda/src/egg/eggSAnimData.cxx b/panda/src/egg/eggSAnimData.cxx index d5a5472033..d02c903865 100644 --- a/panda/src/egg/eggSAnimData.cxx +++ b/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()); } }