Some small fixes

This commit is contained in:
ehofman
2004-03-03 19:48:28 +00:00
parent 557474095f
commit a0251b3256

View File

@@ -209,9 +209,11 @@ SGMaterial::get_state (int n)
}
if ( _current_ptr >= _status.size())
_current_ptr = 0;
((SGMaterial *)this)->_current_ptr = 0;
return (n >= 0) ? _status[n].state : _status[_current_ptr++].state;
ssgSimpleState *st = (n >= 0) ? _status[n].state : _status[_current_ptr].state;
((SGMaterial *)this)->_current_ptr += 1;
return st;
}