diff --git a/AUTHORS b/AUTHORS index 915acecedc..090b53d2eb 100644 --- a/AUTHORS +++ b/AUTHORS @@ -38,9 +38,11 @@ Also thanks to: * Frank Razenberg (zzattack) * Gareth Needham (Ripley`) * Gordon Martin (Happy0) + * Ian T. Jacobsen (Smilex) * Igor Popov (ihptru) * Iran * James Dunne (jsd) + * Jason (atlimit8) * Jeff Harris (jeff_1amstudios) * Jes * Joakim Lindberg (booom3) @@ -84,7 +86,6 @@ Also thanks to: * Tristan Mühlbacher (MicroBit) * Vladimir Komarov (VrKomarov) * Wuschel - * Ian T. Jacobsen (Smilex) Using Simple DirectMedia Layer distributed under the terms of the zlib license. diff --git a/OpenRA.Mods.RA/Sellable.cs b/OpenRA.Mods.RA/Sellable.cs index 77a04c7b2e..e6e8a66b03 100644 --- a/OpenRA.Mods.RA/Sellable.cs +++ b/OpenRA.Mods.RA/Sellable.cs @@ -31,7 +31,8 @@ namespace OpenRA.Mods.RA public void Sell(Actor self) { - if (!self.Trait().Lock()) + var building = self.TraitOrDefault(); + if (building != null && !building.Lock()) return; self.CancelActivity();