]> git.mxchange.org Git - simgear.git/commitdiff
Warning fix: compare signed/unsigned
authorTorsten Dreyer <Torsten@t3r.de>
Fri, 16 Jul 2010 16:34:39 +0000 (18:34 +0200)
committerTorsten Dreyer <Torsten@t3r.de>
Fri, 16 Jul 2010 16:34:39 +0000 (18:34 +0200)
simgear/scene/model/model.cxx

index 9d4d4172ff0cc717d39ce56b65ff4ec5a4f52246..648b670aaf7ee4ad3032b0fb8989464f52d20027 100644 (file)
@@ -274,7 +274,7 @@ void MakeEffectVisitor::apply(osg::Geode& geode)
         ref_ptr<SGSceneUserData> userData = SGSceneUserData::getSceneUserData(&geode);
         if (userData.valid())
             eg->setUserData(new SGSceneUserData(*userData));
-        for (int i = 0; i < geode.getNumDrawables(); ++i) {
+        for (unsigned i = 0; i < geode.getNumDrawables(); ++i) {
             osg::Drawable *drawable = geode.getDrawable(i);
             eg->addDrawable(drawable);