Why the One Definition Rule exists, and being able to hide members with local variables is bad, Exhibit A.

This commit is contained in:
Kyzentun Keeslala
2015-05-15 02:55:40 -06:00
parent 69e765867c
commit f5aec7ed4b
+1 -1
View File
@@ -782,7 +782,7 @@ void Sprite::SetState( int iNewState )
void Sprite::RecalcAnimationLengthSeconds()
{
float m_animation_length_seconds = 0;
m_animation_length_seconds = 0;
FOREACH_CONST(State, m_States, s)
{
m_animation_length_seconds += s->fDelay;