Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixing crash when importing chunks.
  • Loading branch information
MainMemory committed May 15, 2015
1 parent dd69a0c commit f0ac927
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SonLVL/MainForm.cs
Expand Up @@ -4898,7 +4898,7 @@ private void ImportImage(Bitmap bmp, Bitmap colbmp1, Bitmap colbmp2, Bitmap prib
LevelData.ChunkColBmps.Add(new Bitmap[2]);
LevelData.CompChunkBmps.Add(null);
LevelData.CompChunkBmpBits.Add(null);
LevelData.RedrawChunk(SelectedChunk);
LevelData.RedrawChunk(LevelData.Blocks.Count - 1);
}
SelectedChunk = (byte)(LevelData.Chunks.Count - 1);
ChunkSelector.SelectedIndex = SelectedChunk;
Expand Down Expand Up @@ -8068,7 +8068,7 @@ private void pasteOverToolStripMenuItem_Click(object sender, EventArgs e)
LevelData.ChunkColBmps.Add(new Bitmap[2]);
LevelData.CompChunkBmps.Add(null);
LevelData.CompChunkBmpBits.Add(null);
LevelData.RedrawChunk(SelectedChunk);
LevelData.RedrawChunk(LevelData.Blocks.Count - 1);
}
SelectedChunk = (byte)(LevelData.Chunks.Count - 1);
ChunkSelector.SelectedIndex = SelectedChunk;
Expand Down

0 comments on commit f0ac927

Please sign in to comment.