From c4e9bd724417ea5e834af0b76485a1c3b953c396 Mon Sep 17 00:00:00 2001 From: medcelerate Date: Tue, 16 Jul 2024 19:45:54 -0400 Subject: [PATCH] Fixed TD issue --- FFGLTouchEngine/src/TouchEngine.cpp | 4 ++++ FFGLTouchEngineFX/src/TouchEngineFX.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/FFGLTouchEngine/src/TouchEngine.cpp b/FFGLTouchEngine/src/TouchEngine.cpp index a6d1c68..4e5664e 100644 --- a/FFGLTouchEngine/src/TouchEngine.cpp +++ b/FFGLTouchEngine/src/TouchEngine.cpp @@ -1098,6 +1098,10 @@ void FFGLTouchEngine::eventCallback(TEEvent event, TEResult result, int64_t star return; } + if (!errors) { + return; + } + for (int i = 0; i < errors->count; i++) { std::string error = diff --git a/FFGLTouchEngineFX/src/TouchEngineFX.cpp b/FFGLTouchEngineFX/src/TouchEngineFX.cpp index 4fc18e5..c24cf15 100644 --- a/FFGLTouchEngineFX/src/TouchEngineFX.cpp +++ b/FFGLTouchEngineFX/src/TouchEngineFX.cpp @@ -1319,6 +1319,10 @@ void FFGLTouchEngineFX::eventCallback(TEEvent event, TEResult result, int64_t st return; } + if (!errors) { + return; + } + for (int i = 0; i < errors->count; i++) { std::string error =