From f71c20600a9076049707d566833a87b0d742cbba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szymon=20Aceda=C5=84ski?= Date: Sun, 22 Jan 2017 14:16:54 +0100 Subject: [PATCH] Fixed erroreous reference to array instead of its element net->master_{bat,alt} are arrays, but were mistakenly used as values. This correctly generated a compilation warning. --- src/Network/native_ctrls.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Network/native_ctrls.cxx b/src/Network/native_ctrls.cxx index 81ad1866f..61cc4ffef 100644 --- a/src/Network/native_ctrls.cxx +++ b/src/Network/native_ctrls.cxx @@ -428,8 +428,8 @@ void FGNetCtrls2Props( FGNetCtrls *net, bool honor_freezes, // node->setDoubleValue( net->brake_right ); node = fgGetNode( "/controls/switches", true ); - node->setBoolValue( "master-bat", net->master_bat != 0 ); - node->setBoolValue( "master-alt", net->master_alt != 0 ); + node->setBoolValue( "master-bat", net->master_bat[0] != 0 ); + node->setBoolValue( "master-alt", net->master_alt[0] != 0 ); node->setBoolValue( "master-avionics", net->master_avionics > 0 ); node = fgGetNode( "/environment", true );