]> git.mxchange.org Git - flightgear.git/commitdiff
Note to self: Do test compile, even when it's only adding a simple if/else
authordurk <durk>
Fri, 30 Jan 2009 19:05:27 +0000 (19:05 +0000)
committerTim Moore <timoore@redhat.com>
Sun, 1 Feb 2009 22:44:11 +0000 (23:44 +0100)
statement around two existing pieces of code. :-)

src/Airports/xmlloader.cxx

index 1009f8a0e4ac76e5310ae1e4ad6766ed1e207efa..440d7718fa7c33934a876f75c849b0a4a08c225a 100644 (file)
@@ -14,7 +14,9 @@
 //
 
 #include <simgear/misc/sg_path.hxx>
+
 #include <Main/globals.hxx>
+#include <Main/fg_props.hxx>
 
 #include "xmlloader.hxx"
 #include "dynamicloader.hxx"
@@ -67,12 +69,13 @@ void XMLLoader::load(FGAirportDynamics* d) {
                     try {
                         readXML(parkpath.str(), visitor);
                         d->init();
-                } 
-                catch (const sg_exception &e) {
+                    } 
+                    catch (const sg_exception &e) {
+                    }
+                    return;
                 }
-                return;
-             }
-         }
+            }
+        }
     }
 }