From: Cojoke <83733158+Cojoke-dot@users.noreply.github.com> Date: Thu, 8 May 2025 00:47:03 +0000 (-0500) Subject: Small InventorySystem.Equip Unequip Reason bugfix (#37265) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=fdf860d64fff9fc7fdadc00848b81211e083d323;p=space-station-14.git Small InventorySystem.Equip Unequip Reason bugfix (#37265) Fix small bug --- diff --git a/Content.Shared/Inventory/InventorySystem.Equip.cs b/Content.Shared/Inventory/InventorySystem.Equip.cs index 4988fd96be..5271e22542 100644 --- a/Content.Shared/Inventory/InventorySystem.Equip.cs +++ b/Content.Shared/Inventory/InventorySystem.Equip.cs @@ -547,7 +547,7 @@ public abstract partial class InventorySystem RaiseLocalEvent(itemUid, itemAttemptEvent, true); if (itemAttemptEvent.Cancelled) { - reason = attemptEvent.Reason ?? reason; + reason = itemAttemptEvent.Reason ?? reason; return false; }