a potential bug in ScrollView

check _touches in setTouchEnabled
This commit is contained in:
zcgit 2013-06-21 18:00:56 +08:00
parent c9627abd3d
commit 912a52a677
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ void ScrollView::setTouchEnabled(bool e)
{
_dragging = false;
_touchMoved = false;
_touches->removeAllObjects();
if(_touches)_touches->removeAllObjects();
}
}