]> git.mxchange.org Git - flightgear.git/commitdiff
Patch from Georg Kaiser.
authordavid <david>
Wed, 5 Jun 2002 21:43:44 +0000 (21:43 +0000)
committerdavid <david>
Wed, 5 Jun 2002 21:43:44 +0000 (21:43 +0000)
src/Cockpit/panel_io.cxx

index 14f4358af25ecf966eddae722df9fc88ccfb7241..4e89749ca40effb8a1450dd644755520c1c8354c 100644 (file)
@@ -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);