From 99b127ba5dfb01ed2e3ecd87274d66391ad3352d Mon Sep 17 00:00:00 2001 From: joshuastray Date: Mon, 30 Jun 2014 10:19:00 +0800 Subject: [PATCH] fix scrollview crashes on win32 because of variable returned without initialization --- cocos/ui/UIScrollView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/ui/UIScrollView.cpp b/cocos/ui/UIScrollView.cpp index ef1993621d..0797cb0b98 100644 --- a/cocos/ui/UIScrollView.cpp +++ b/cocos/ui/UIScrollView.cpp @@ -894,7 +894,7 @@ bool ScrollView::scrollChildrenVertical(float touchOffsetX, float touchOffsetY) bool ScrollView::scrollChildrenHorizontal(float touchOffsetX, float touchOffestY) { - bool scrollenabled; + bool scrollenabled = false; float realOffset = touchOffsetX; if (_bounceEnabled) {