take lock in Sellable.ResolveOrder
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#endregion
|
||||
|
||||
using OpenRA.Mods.RA.Activities;
|
||||
using OpenRA.Mods.RA.Buildings;
|
||||
using OpenRA.Mods.RA.Render;
|
||||
using OpenRA.Traits;
|
||||
|
||||
@@ -31,6 +32,9 @@ namespace OpenRA.Mods.RA
|
||||
if (capturing != null && capturing.CaptureInProgress)
|
||||
return;
|
||||
|
||||
if (!self.Trait<Building>().Lock())
|
||||
return;
|
||||
|
||||
Selling = true;
|
||||
|
||||
foreach( var ns in self.TraitsImplementing<INotifySold>() )
|
||||
|
||||
Reference in New Issue
Block a user