Fix IDE0031
This commit is contained in:
committed by
Gustas Kažukauskas
parent
3745377387
commit
af326bfeb8
@@ -283,11 +283,8 @@ namespace OpenRA.Graphics
|
||||
{
|
||||
for (var i = 0; i < c.Cursors.Length; i++)
|
||||
{
|
||||
if (c.Cursors[i] != null)
|
||||
{
|
||||
c.Cursors[i].Dispose();
|
||||
c.Cursors[i] = null;
|
||||
}
|
||||
c.Cursors[i]?.Dispose();
|
||||
c.Cursors[i] = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -663,11 +663,8 @@ namespace OpenRA
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (package != null)
|
||||
{
|
||||
package.Dispose();
|
||||
package = null;
|
||||
}
|
||||
package?.Dispose();
|
||||
package = null;
|
||||
}
|
||||
|
||||
public void Delete()
|
||||
|
||||
Reference in New Issue
Block a user