Fix RCS1077
This commit is contained in:
@@ -175,7 +175,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
.Where(p => p.AcceptsPlug(plugInfo.Type))
|
||||
.ToList();
|
||||
|
||||
var pluggable = pluggables.FirstOrDefault(p => a.Location + p.Info.Offset == targetLocation)
|
||||
var pluggable = pluggables.Find(p => a.Location + p.Info.Offset == targetLocation)
|
||||
?? pluggables.FirstOrDefault();
|
||||
|
||||
if (pluggable == null)
|
||||
|
||||
Reference in New Issue
Block a user