From 5008e912c7aacbc0a5f7cda31f7a110345f9ce07 Mon Sep 17 00:00:00 2001 From: curt Date: Tue, 20 Jan 2009 17:46:16 +0000 Subject: [PATCH] Make newly created (external) boolean properties default to true if not otherwise specified. --- src/FDM/ExternalPipe/ExternalPipe.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FDM/ExternalPipe/ExternalPipe.cxx b/src/FDM/ExternalPipe/ExternalPipe.cxx index 949d6d51d..8f33df584 100644 --- a/src/FDM/ExternalPipe/ExternalPipe.cxx +++ b/src/FDM/ExternalPipe/ExternalPipe.cxx @@ -544,7 +544,7 @@ void FGExternalPipe::update_property( double dt ) { // node doesn't exist so create with requested type node = fgGetNode( tokens[1].c_str(), true ); if ( tokens[2] == "bool" ) { - node->setBoolValue(true); + node->setBoolValue(false); } else if ( tokens[2] == "int" ) { node->setIntValue(0); } else if ( tokens[2] == "double" ) { -- 2.39.5