From edf0f5632e5a34b5eca8a57bf2058cbb05a2a8b2 Mon Sep 17 00:00:00 2001 From: DelinWorks Date: Tue, 3 May 2022 20:54:44 +0300 Subject: [PATCH] Update CCMotionStreak.cpp --- core/2d/CCMotionStreak.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/2d/CCMotionStreak.cpp b/core/2d/CCMotionStreak.cpp index 861eacfeff..940b32e05a 100644 --- a/core/2d/CCMotionStreak.cpp +++ b/core/2d/CCMotionStreak.cpp @@ -101,7 +101,7 @@ bool MotionStreak::initWithFade(float fade, float minSeg, float stroke, const Co _stroke = stroke; _fadeDelta = 1.0f / fade; - // Fix animation interval 0 because of vsync being off + // Fix #629 Motion streak vsync off crash double interval = _director->getAnimationInterval(); double fps = 1 / interval; if (roundf(fps) == INFINITY)