From 6b40600e7b70c3f4b5ee6e654c582b56d28455c8 Mon Sep 17 00:00:00 2001 From: curt Date: Fri, 8 Mar 2002 23:24:59 +0000 Subject: [PATCH] Sgi doesn't define the != operator for string != char[] so we need to cast the char array into a (string) type before doing the comparison. --- src/Cockpit/panel_io.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cockpit/panel_io.cxx b/src/Cockpit/panel_io.cxx index f77ff2626..763d40ac3 100644 --- a/src/Cockpit/panel_io.cxx +++ b/src/Cockpit/panel_io.cxx @@ -724,7 +724,7 @@ readPanel (const SGPropertyNode * root) // Get multibackground if any... // string mbgTexture = root->getStringValue("multibackground[0]"); - if (mbgTexture != "") { + if (mbgTexture != (string)"") { panel->setMultiBackground(FGTextureManager::createTexture(mbgTexture.c_str()), 0); SG_LOG( SG_COCKPIT, SG_INFO, "Set background texture to " << mbgTexture );