Fixing a crash with RenderableTrails when time is set manually

This commit is contained in:
Alexander Bock
2015-02-15 23:04:09 +01:00
parent 13c48242df
commit e1c8b63c09
+1 -1
View File
@@ -177,7 +177,7 @@ void RenderableTrail::update(const UpdateData& data) {
// close to 1 // close to 1
// But you never know // But you never know
nValues = std::min(nValues, int(_vertexArray.size())); nValues = std::min(nValues, int(_vertexArray.size() - 1));
//LINFO(nValues); //LINFO(nValues);
std::vector<TrailVBOLayout> tmp = _vertexArray; std::vector<TrailVBOLayout> tmp = _vertexArray;