Fix IDE0083
This commit is contained in:
committed by
Pavel Penev
parent
bd2b3d9793
commit
164abfdae1
@@ -36,7 +36,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
// The DeployTransform order does not have a position associated with it,
|
||||
// so we can only queue a new transformation if something else has
|
||||
// already triggered the undeploy.
|
||||
if (!order.Queued || !(self.CurrentActivity is Transform currentTransform))
|
||||
if (!order.Queued || self.CurrentActivity is not Transform currentTransform)
|
||||
return;
|
||||
|
||||
currentTransform.Queue(new IssueOrderAfterTransform("DeployTransform", order.Target));
|
||||
|
||||
Reference in New Issue
Block a user