Fix IDE0056
This commit is contained in:
committed by
Pavel Penev
parent
4ec5a4b34a
commit
5254348819
@@ -144,7 +144,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
shotsFired++;
|
||||
var requiredShots = tokens.Count < Info.RequiredShotsPerInstance.Length
|
||||
? Info.RequiredShotsPerInstance[tokens.Count]
|
||||
: Info.RequiredShotsPerInstance[Info.RequiredShotsPerInstance.Length - 1];
|
||||
: Info.RequiredShotsPerInstance[^1];
|
||||
|
||||
if (shotsFired >= requiredShots)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user