]> git.mxchange.org Git - flightgear.git/blobdiff - src/AIModel/AICarrier.cxx
Fix Carriers without catapults and wires.
[flightgear.git] / src / AIModel / AICarrier.cxx
index e522019398fd3a7932152e1d9116fa438fe5e632..de59545d6f225e5dd967dd7cfe66d97cfeefb862 100644 (file)
@@ -394,7 +394,7 @@ void FGAICarrier::initModel(osg::Node *node)
     // process the 3d model here
     // mark some objects solid, mark the wires ...
     FGCarrierVisitor carrierVisitor(this, wire_objects, catapult_objects);
-    model->accept(carrierVisitor);
+    node->accept(carrierVisitor);
 }
 
 void FGAICarrier::bind() {