]> git.mxchange.org Git - flightgear.git/blobdiff - src/AIModel/AIBallistic.cxx
Remove dead file.
[flightgear.git] / src / AIModel / AIBallistic.cxx
index 6a0565652de84fd6f2b0d49fdb0b6c69a28b6c1b..fc4ea30c19d4a5439a9285101f18d31045a8fb6b 100644 (file)
@@ -498,9 +498,10 @@ void FGAIBallistic::setForcePath(const string& p) {
 }
 
 bool FGAIBallistic::getHtAGL(double start){
-    const SGMaterial* material = 0;
+    const simgear::BVHMaterial* mat = 0;
     if (getGroundElevationM(SGGeod::fromGeodM(pos, start),
-        _elevation_m, &material)) {
+        _elevation_m, &mat)) {
+            const SGMaterial* material = dynamic_cast<const SGMaterial*>(mat);
             _ht_agl_ft = pos.getElevationFt() - _elevation_m * SG_METER_TO_FEET;
 
             if (material) {