1
0
Fork 0

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.
This commit is contained in:
curt 2002-03-08 23:24:59 +00:00
parent efe559ead4
commit 6b40600e7b

View 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 );