]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Changing sex now properly updates sounds. (#37405)
authorSolStar <44028047+SolStar2@users.noreply.github.com>
Wed, 14 May 2025 23:54:34 +0000 (19:54 -0400)
committerGitHub <noreply@github.com>
Wed, 14 May 2025 23:54:34 +0000 (19:54 -0400)
Load sounds based on new sex in event.

Content.Server/Speech/EntitySystems/VocalSystem.cs

index 7c8ec21a94bb0c684ce89d5e646f2d7d211510db..14fac0bab8f7ca9a3a75493591de36a4a6d2378c 100644 (file)
@@ -49,7 +49,7 @@ public sealed class VocalSystem : EntitySystem
 
     private void OnSexChanged(EntityUid uid, VocalComponent component, SexChangedEvent args)
     {
-        LoadSounds(uid, component);
+        LoadSounds(uid, component, args.NewSex);
     }
 
     private void OnEmote(EntityUid uid, VocalComponent component, ref EmoteEvent args)