1
0
mirror of synced 2024-12-01 02:27:22 +01:00

More nul checks

This commit is contained in:
KillzXGaming 2019-04-29 19:38:11 -04:00
parent 0bbab95db6
commit f9ebaffe19
4 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -596,7 +596,7 @@ namespace Switch_Toolbox.Library.Forms
HasBeenEdited = false;
}
if (ActiveTexture.EditedImages != null) {
if (ActiveTexture.EditedImages != null && ActiveTexture.EditedImages[CurArrayDisplayLevel] != null) {
ActiveTexture.EditedImages[CurArrayDisplayLevel].bitmap.Dispose();
ActiveTexture.EditedImages[CurArrayDisplayLevel] = null;
}