]> git.mxchange.org Git - simgear.git/commitdiff
Fix a minor warning message.
authorcurt <curt>
Sat, 24 Jul 2004 19:21:15 +0000 (19:21 +0000)
committercurt <curt>
Sat, 24 Jul 2004 19:21:15 +0000 (19:21 +0000)
simgear/scene/model/animation.cxx

index b6f9ecbc6397f5bdaaf5134439c8719aeb866e9e..a9a5dbe249d961da62a3538fc3eb24ae8d6db96c 100644 (file)
@@ -456,9 +456,9 @@ void
 SGTimedAnimation::init()
 {
     if ( !_use_personality ) {
-        for ( size_t i = 0; i < getBranch()->getNumKids(); i++ ) {
+        for ( int i = 0; i < getBranch()->getNumKids(); i++ ) {
             double v;
-            if ( i < _branch_duration_specs.size() ) {
+            if ( i < (int)_branch_duration_specs.size() ) {
                 DurationSpec &sp = _branch_duration_specs[ i ];
                 v = sp._min + sg_random() * ( sp._max - sp._min );
             } else {