]> git.mxchange.org Git - flightgear.git/commitdiff
Sgi doesn't define the != operator for string != char[] so we need to cast
authorcurt <curt>
Fri, 8 Mar 2002 23:24:59 +0000 (23:24 +0000)
committercurt <curt>
Fri, 8 Mar 2002 23:24:59 +0000 (23:24 +0000)
the char array into a (string) type before doing the comparison.

src/Cockpit/panel_io.cxx

index f77ff2626bab464a784a82b4b43b8d766848812b..763d40ac32b6dae143ab97e5d89f9dadd86f0e35 100644 (file)
@@ -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 );