Skip calling SetTime api if start time is unused #2203

This commit is contained in:
Wojtek Figat
2024-02-06 10:59:55 +01:00
parent cff047998c
commit f9448c3b42

View File

@@ -546,8 +546,9 @@ void AudioSource::BeginPlay(SceneBeginData* data)
#if USE_EDITOR
if (Time::GetGamePaused())
return;
#endif
#endif
Play();
SetTime(GetStartTime());
if (GetStartTime() > 0)
SetTime(GetStartTime());
}
}