From Brede Johansen, fixed range check

This commit is contained in:
Robert Osfield
2005-07-15 10:48:23 +00:00
parent 70647b8801
commit 0c7f228224

View File

@@ -122,7 +122,7 @@ inline void BlinkSequence::getPulse(unsigned int i, double& length, osg::Vec4& c
inline void BlinkSequence::setPulse(unsigned int i,double length,const osg::Vec4& color)
{
if( i > _pulseData.size() ) return;
if( i >= _pulseData.size() ) return;
IntervalColor& ic = _pulseData[i];
ic.first = length;
ic.second = color;