about summary refs log tree commit diff
path: root/src/game/editor/editor.cpp
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2012-08-17 18:32:56 +0200
committeroy <Tom_Adams@web.de>2013-02-24 17:58:34 +0100
commit1711be955b54b9d12431b341ea290bad406023cc (patch)
tree3f667dab7e2ef59aa622035b5d95f4a00ab9b57a /src/game/editor/editor.cpp
parent98042012a6c6e639c9736b32518dd082ca539615 (diff)
downloadzcatch-1711be955b54b9d12431b341ea290bad406023cc.tar.gz
zcatch-1711be955b54b9d12431b341ea290bad406023cc.zip
fixed all the errors that the clang static analayzer found
Diffstat (limited to 'src/game/editor/editor.cpp')
-rw-r--r--src/game/editor/editor.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/game/editor/editor.cpp b/src/game/editor/editor.cpp
index ee26a3f0..7109adca 100644
--- a/src/game/editor/editor.cpp
+++ b/src/game/editor/editor.cpp
@@ -2292,8 +2292,6 @@ void CEditor::RenderLayers(CUIRect ToolBox, CUIRect ToolBar, CUIRect View)
 				if(Input()->KeyPresses(KEY_MOUSE_WHEEL_DOWN))
 					s_ScrollValue = clamp(s_ScrollValue + 1.0f/ScrollNum, 0.0f, 1.0f);
 			}
-			else
-				ScrollNum = 0;
 		}
 	}
 
@@ -2615,8 +2613,6 @@ void CEditor::RenderImages(CUIRect ToolBox, CUIRect ToolBar, CUIRect View)
 				if(Input()->KeyPresses(KEY_MOUSE_WHEEL_DOWN))
 					s_ScrollValue = clamp(s_ScrollValue + 1.0f/ScrollNum, 0.0f, 1.0f);
 			}
-			else
-				ScrollNum = 0;
 		}
 	}