Use out var syntax
This commit is contained in:
@@ -77,8 +77,7 @@ namespace OpenRA.Mods.Common.Scripting
|
||||
{
|
||||
var result = new List<Actor>();
|
||||
|
||||
ActorInfo ai;
|
||||
if (!Context.World.Map.Rules.Actors.TryGetValue(type, out ai))
|
||||
if (!Context.World.Map.Rules.Actors.TryGetValue(type, out var ai))
|
||||
throw new LuaException("Unknown actor type '{0}'".F(type));
|
||||
|
||||
result.AddRange(Player.World.Actors
|
||||
|
||||
Reference in New Issue
Block a user