From: david Date: Wed, 5 Jun 2002 21:43:44 +0000 (+0000) Subject: Patch from Georg Kaiser. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=34e2e52158722d57381dad6299062c491cec860a;p=flightgear.git Patch from Georg Kaiser. --- diff --git a/src/Cockpit/panel_io.cxx b/src/Cockpit/panel_io.cxx index 14f4358af..4e89749ca 100644 --- a/src/Cockpit/panel_io.cxx +++ b/src/Cockpit/panel_io.cxx @@ -549,7 +549,7 @@ readLayer (const SGPropertyNode * node, float w_scale, float h_scale) static FGPanelInstrument * readInstrument (const SGPropertyNode * node) { - const string &name = node->getStringValue("name"); + const string name = node->getStringValue("name"); int x = node->getIntValue("x", -1); int y = node->getIntValue("y", -1); int real_w = node->getIntValue("w", -1);