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:
parent
efe559ead4
commit
6b40600e7b
1 changed files with 1 additions and 1 deletions
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in a new issue