]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
last words error fix (#39245)
authorxsainteer <156868231+xsainteer@users.noreply.github.com>
Mon, 28 Jul 2025 12:56:48 +0000 (18:56 +0600)
committerGitHub <noreply@github.com>
Mon, 28 Jul 2025 12:56:48 +0000 (14:56 +0200)
4 line bugfix

Content.Server/Mobs/CritMobActionsSystem.cs

index c897102dca76b894b3c4ecb23415654209fecd99..c266037a8ff292e79613e9a19874340fe9a5d043 100644 (file)
@@ -65,6 +65,10 @@ public sealed class CritMobActionsSystem : EntitySystem
         _quickDialog.OpenDialog(actor.PlayerSession, Loc.GetString("action-name-crit-last-words"), "",
             (string lastWords) =>
             {
+                // if a person is gibbed/deleted, they can't say last words
+                if (Deleted(uid))
+                    return;
+
                 // Intentionally does not check for muteness
                 if (actor.PlayerSession.AttachedEntity != uid
                     || !_mobState.IsCritical(uid))