Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 22, 2008, 8:12:32 PM (15 years ago)
Author:
rgrieder
Message:

Removed two gcc warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/buildsystem2/src/orxonox/overlays/hud/HUDBar.cc

    r2087 r2524  
    114114            if (this->colours_.size() > 0)
    115115            {
    116                 ColourValue colour1, colour2 = (*this->colours_.rbegin()).second;
    117                 float value1, value2 = (*this->colours_.rbegin()).first;
     116                ColourValue colour1(0, 0, 0, 1);
     117                ColourValue colour2 = (*this->colours_.rbegin()).second;
     118                float value1(0);
     119                float value2 = (*this->colours_.rbegin()).first;
    118120                for (std::map<float, ColourValue>::reverse_iterator it = this->colours_.rbegin(); it != this->colours_.rend(); ++it)
    119121                {
Note: See TracChangeset for help on using the changeset viewer.