From c136f24bf0793190ac606436c904992c7e82eb9b Mon Sep 17 00:00:00 2001 From: lucoiso Date: Sun, 13 Aug 2023 17:04:40 +0100 Subject: [PATCH] Hotfix: Fix param attribution --- .../Structures/AzSpeechSettingsOptions.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Source/AzSpeech/Private/AzSpeech/Structures/AzSpeechSettingsOptions.cpp b/Source/AzSpeech/Private/AzSpeech/Structures/AzSpeechSettingsOptions.cpp index 76232de..5548d90 100644 --- a/Source/AzSpeech/Private/AzSpeech/Structures/AzSpeechSettingsOptions.cpp +++ b/Source/AzSpeech/Private/AzSpeech/Structures/AzSpeechSettingsOptions.cpp @@ -69,16 +69,16 @@ FAzSpeechRecognitionOptions::FAzSpeechRecognitionOptions(const FName& InLocale) if (IsAutoLanguage(InLocale)) { - this->bUseLanguageIdentification = true; - this->Locale = InLocale; + bUseLanguageIdentification = true; + Locale = InLocale; } else if (IsDefault(InLocale)) { - this->Locale = GetDefault()->DefaultOptions.RecognitionOptions.Locale; + Locale = GetDefault()->DefaultOptions.RecognitionOptions.Locale; } else { - this->Locale = InLocale; + Locale = InLocale; } } @@ -123,18 +123,18 @@ FAzSpeechSynthesisOptions::FAzSpeechSynthesisOptions(const FName& InLocale) { SetDefaults(); - if (IsAutoLanguage(Locale)) + if (IsAutoLanguage(InLocale)) { bUseLanguageIdentification = true; - Locale = Locale; + Locale = InLocale; } - else if (IsDefault(Locale)) + else if (IsDefault(InLocale)) { Locale = GetDefault()->DefaultOptions.SynthesisOptions.Locale; } else { - Locale = Locale; + Locale = InLocale; } }