mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
Fixes an optimization bug producing #INF in the egg file. Added check to make sure data isn't empty. This might be an issue only found in VS2008 SP1.
This commit is contained in:
parent
77318b23df
commit
846505743d
@ -39,7 +39,9 @@ optimize() {
|
||||
}
|
||||
|
||||
// Ok, all the rows had the same value. Collapse them.
|
||||
_data.erase(_data.begin() + 1, _data.end());
|
||||
if(!_data.empty()){
|
||||
_data.erase(_data.begin() + 1, _data.end());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user