Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 2, 2009, 10:20:37 PM (15 years ago)
Author:
rgrieder
Message:

Fixed at least 8 unitialised value problems though not all of them are problematic. Still, the values are being used and some condition depends on it.

Location:
code/branches/presentation2/src/libraries
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/libraries/core/ConfigValueContainer.h

    r5738 r6218  
    146146                if ((this->callback_ && object) || this->bContainerIsNew_)
    147147                {
    148                     if (this->bContainerIsNew_)
    149                         this->bContainerIsNew_ = false;
    150 
    151148                    T temp = *value;
    152149                    this->value_.getValue(value);
    153                     if ((*value) != temp)
     150                    if (this->bContainerIsNew_ || (*value) != temp)
    154151                    {
    155152                        if (this->callback_ && object)
     
    158155                            this->bDoInitialCallback_ = true;
    159156                    }
     157
     158                    if (this->bContainerIsNew_)
     159                        this->bContainerIsNew_ = false;
    160160                }
    161161                else
  • code/branches/presentation2/src/libraries/tools/ParticleInterface.cc

    r6213 r6218  
    6464        this->bAllowedByLOD_ = true;
    6565        this->speedFactor_ = 1.0f;
     66
     67        this->setDetailLevel(static_cast<unsigned int>(detaillevel));
    6668
    6769        this->setConfigValues();
     
    8082            }
    8183        }
    82 
    83         this->setDetailLevel(static_cast<unsigned int>(detaillevel));
    8484    }
    8585
  • code/branches/presentation2/src/libraries/tools/Shader.cc

    r5781 r6218  
    7979    Shader::~Shader()
    8080    {
    81 
    82         if (this->bLoadCompositor_ && this->compositorInstance_)
     81        if (this->compositorInstance_ && this->bLoadCompositor_)
    8382        {
    8483            Ogre::Viewport* viewport = GraphicsManager::getInstance().getViewport();
Note: See TracChangeset for help on using the changeset viewer.