Use out var syntax
This commit is contained in:
@@ -53,8 +53,7 @@ namespace OpenRA.Mods.Cnc.Traits
|
||||
{
|
||||
var damageSubTicks = (int)(damage.Value * 100L * Info.DamageMultiplier / Info.DamageDivisor);
|
||||
|
||||
SupportPowerInstance spi;
|
||||
if (spm.Powers.TryGetValue(Info.OrderName, out spi))
|
||||
if (spm.Powers.TryGetValue(Info.OrderName, out var spi))
|
||||
{
|
||||
var dspi = spi as GrantPrerequisiteChargeDrainPower.DischargeableSupportPowerInstance;
|
||||
if (dspi != null)
|
||||
|
||||
Reference in New Issue
Block a user