From: Tayrtahn Date: Fri, 10 May 2024 01:31:31 +0000 (-0400) Subject: Fix two issues with ReplacementAccentSystem (#27866) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=0d0d46e01fb708a412688ad07ae0f633082ffbac;p=space-station-14.git Fix two issues with ReplacementAccentSystem (#27866) --- diff --git a/Content.Server/Speech/EntitySystems/ReplacementAccentSystem.cs b/Content.Server/Speech/EntitySystems/ReplacementAccentSystem.cs index c332c6cda8..da198bcc12 100644 --- a/Content.Server/Speech/EntitySystems/ReplacementAccentSystem.cs +++ b/Content.Server/Speech/EntitySystems/ReplacementAccentSystem.cs @@ -89,8 +89,8 @@ namespace Content.Server.Speech.EntitySystems // In-place replace the match with the transformed capitalization replacement message = message.Remove(match.Index, match.Length).Insert(match.Index, replacement); - string mask = new string('_', match.Length); - maskMessage = message.Remove(match.Index, match.Length).Insert(match.Index, mask); + var mask = new string('_', replacement.Length); + maskMessage = maskMessage.Remove(match.Index, match.Length).Insert(match.Index, mask); } }