]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/YASim/Wing.cpp
FGPUIDialog: fix reading from already free'd memory.
[flightgear.git] / src / FDM / YASim / Wing.cpp
index ad15410e17a7a7831e1280849a69253f4635552b..1a68244962bd91a54815c94c8229bc779f18588e 100644 (file)
@@ -254,7 +254,7 @@ bool Wing::isMirrored()
 void Wing::compile()
 {
     // Have we already been compiled?
-    if(_surfs.size() != 0) return;
+    if(! _surfs.empty()) return;
 
     // Assemble the start/end coordinates of all control surfaces
     // and the wing itself into an array, sort them,