Showing 1 changed files with 1 additions and 1 deletions
+1 -1
Nasal/maps/tcas.nas
... ...
@@ -71,12 +71,12 @@ var MapTcas = {
71 71
 # init TCAS layer and update {{{
72 72
     new : func(device, group) {
73 73
         var m = {parents:[MapTcas]}; 
74
+        m.device = device;
74 75
         if (getprop('/instrumentation/tcas/serviceable') == nil) {
75 76
             m.update = func;
76 77
             m.setVisible = func;
77 78
         }
78 79
         else {
79
-            m.device = device;
80 80
             m.visibility = 0;
81 81
             m.group = group.createChild('map', 'tcas')
82 82
                 .setTranslation(