From 5e708637e17c4346263f2eb5bef6c245123f9278 Mon Sep 17 00:00:00 2001 From: lzk <124214523+lzk228@users.noreply.github.com> Date: Thu, 26 Dec 2024 18:45:07 +0100 Subject: [PATCH] =?UTF-8?q?=D0=B2=D0=BE=D1=82=20=D1=8D=D1=82=D0=BE=20?= =?UTF-8?q?=D1=8F=20=D0=B4=D0=B0=D1=83=D0=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Content.Server/Telephone/TelephoneSystem.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Content.Server/Telephone/TelephoneSystem.cs b/Content.Server/Telephone/TelephoneSystem.cs index 5fd4b906386..3c94b45e58a 100644 --- a/Content.Server/Telephone/TelephoneSystem.cs +++ b/Content.Server/Telephone/TelephoneSystem.cs @@ -114,8 +114,8 @@ private void OnTelephoneMessageReceived(Entity entity, ref T // If speaker entity has TTS, the telephone will speak with the same voice if(TryComp(args.MessageSource, out var ttsSpeaker)) { - _entManager.EnsureComponent(entity, out var ttsTelephone) - ttsTelephone.VoicePrototypeId = ttsSpeaker.VoicePrototypeId + _entManager.EnsureComponent(entity, out var ttsTelephone); + ttsTelephone.VoicePrototypeId = ttsSpeaker.VoicePrototypeId; } else // Remove TTS if the speaker has no TTS {