From: curt Date: Fri, 8 Mar 2002 23:24:59 +0000 (+0000) Subject: Sgi doesn't define the != operator for string != char[] so we need to cast X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6b40600e7b70c3f4b5ee6e654c582b56d28455c8;p=flightgear.git 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. --- 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 );