[bug] Fixed a crash of multiple finger operations (#1433)

This commit is contained in:
yongminghuang
2018-08-02 17:27:24 +08:00
committed by pandamicro
parent 7e8cc515ab
commit 4e206fd656
@@ -97,7 +97,7 @@ void EventDispatcher::dispatchTouchEvent(const struct TouchEvent& touchEvent)
_jsTouchObjArray->setProperty("length", se::Value(touchEvent.touches.size()));
if (_jsTouchObjPool.size() < touchEvent.touches.size())
while (_jsTouchObjPool.size() < touchEvent.touches.size())
{
se::Object* touchObj = se::Object::createPlainObject();
touchObj->root();