]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATCDCL/ATISmgr.cxx
Fix an (unlikely) startup crash
[flightgear.git] / src / ATCDCL / ATISmgr.cxx
index b52d9567574b75db4cbe4b1bd5088f694d6f97ff..abb7490a4750a72229d1ffb167f3b8687e1770e6 100644 (file)
@@ -47,10 +47,8 @@ FGATISMgr::~FGATISMgr()
 {
     globals->set_ATIS_mgr(NULL);
 
-    for (unsigned int unit = 0;unit < _maxCommRadios; ++unit)
-    {
+    for (unsigned int unit = 0;unit < radios.size(); ++unit) {
         delete radios[unit];
-        radios[unit] = NULL;
     }
 
 #ifdef ENABLE_AUDIO_SUPPORT