]> git.mxchange.org Git - simgear.git/commit
Frederic Bouvier:
authorehofman <ehofman>
Wed, 21 Jul 2004 10:52:40 +0000 (10:52 +0000)
committerehofman <ehofman>
Wed, 21 Jul 2004 10:52:40 +0000 (10:52 +0000)
commit04fb708543bf7546e236d876491e7f0f62c7c12b
treed4b0492cde98cdb8d7e5db482f5ebec82e58b182
parentdf302f277cbd4aa63f3d678f6a676d15f346a350
Frederic Bouvier:

I just discovered this : state() is not valid when _level==0,
because it is doing:
{ return _state_stack[_state_stack.size() - 1]; }
and is returning a wrong index fetch ( 0 - 1 ) == -1

Moreover, st is not used when _level==0 so the line can be moved
to a safer place.
simgear/props/props_io.cxx