Fix for obnoxious C++0x warning in GCC.

This commit is contained in:
Andrzej Kapolka 2013-12-12 16:46:17 -08:00
parent d9573f6d6c
commit 17b2ee6984

View file

@ -57,7 +57,7 @@ public:
const glm::vec3& getPosition() const { return _position; }
const rgbColor& getColor() const { return _color; }
xColor getColor() { return { _color[RED_INDEX], _color[GREEN_INDEX], _color[BLUE_INDEX] }; }
xColor getColor() { xColor color = { _color[RED_INDEX], _color[GREEN_INDEX], _color[BLUE_INDEX] }; return color; }
float getRadius() const { return _radius; }
const glm::vec3& getVelocity() const { return _velocity; }
const glm::vec3& getGravity() const { return _gravity; }
@ -144,4 +144,4 @@ private:
};
#endif /* defined(__hifi__Particle__) */
#endif /* defined(__hifi__Particle__) */