Fix IDE0031

This commit is contained in:
RoosterDragon
2025-11-11 18:08:06 +00:00
committed by Gustas Kažukauskas
parent 3745377387
commit af326bfeb8
2 changed files with 4 additions and 10 deletions

View File

@@ -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;
}
}
}

View File

@@ -663,11 +663,8 @@ namespace OpenRA
public void Dispose()
{
if (package != null)
{
package.Dispose();
package = null;
}
package?.Dispose();
package = null;
}
public void Delete()