From: curt Date: Tue, 20 Jan 2009 17:46:16 +0000 (+0000) Subject: Make newly created (external) boolean properties default to true if not X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5008e912c7aacbc0a5f7cda31f7a110345f9ce07;p=flightgear.git Make newly created (external) boolean properties default to true if not otherwise specified. --- 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" ) {