Use out var syntax
This commit is contained in:
@@ -160,8 +160,7 @@ namespace OpenRA.Graphics
|
||||
return null;
|
||||
}
|
||||
|
||||
Rectangle mi;
|
||||
if (!collection.Regions.TryGetValue(imageName, out mi))
|
||||
if (!collection.Regions.TryGetValue(imageName, out var mi))
|
||||
return null;
|
||||
|
||||
// Cache the sprite
|
||||
|
||||
Reference in New Issue
Block a user