From f5aec7ed4b282ba1a95c0cbc2975612c834322aa Mon Sep 17 00:00:00 2001 From: Kyzentun Keeslala Date: Fri, 15 May 2015 02:55:40 -0600 Subject: [PATCH] Why the One Definition Rule exists, and being able to hide members with local variables is bad, Exhibit A. --- src/Sprite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Sprite.cpp b/src/Sprite.cpp index 5ba279be33..df85f5a9de 100644 --- a/src/Sprite.cpp +++ b/src/Sprite.cpp @@ -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;