From d6f8b4e7b1492ccc745a04678bf2a4bac8dae892 Mon Sep 17 00:00:00 2001 From: jehret <ehret@vr.rwth-aachen.de> Date: Tue, 11 Jul 2023 21:53:14 +0200 Subject: [PATCH] minor fix to avoid failing checks if the cluster event wasn't bound --- .../Private/SignalSources/VAAudiofileSignalSource.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/VAPlugin/Private/SignalSources/VAAudiofileSignalSource.cpp b/Source/VAPlugin/Private/SignalSources/VAAudiofileSignalSource.cpp index 02b7467..1db6618 100644 --- a/Source/VAPlugin/Private/SignalSources/VAAudiofileSignalSource.cpp +++ b/Source/VAPlugin/Private/SignalSources/VAAudiofileSignalSource.cpp @@ -181,6 +181,10 @@ EPlayAction::Type UVAAudiofileSignalSource::GetPlayActionEnum(bool bDirectOnMast int UVAAudiofileSignalSource::GetPlayAction(bool bDirectOnMaster /*= false*/) { + if(!bInitialized) + { + return -1; + } //we return the internally stored action in case this is in cluster and not the master //but also update the internally stored data by the one which the master can get from the VAServer //However, using cluster events to sync, so new data might only be available next frame! -- GitLab