Skip to content

Commit

Permalink
Fixing crash when importing layout section.
Browse files Browse the repository at this point in the history
  • Loading branch information
MainMemory committed Jun 8, 2016
1 parent 061b55b commit eb4c420
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SonLVL/MainForm.cs
Expand Up @@ -8577,7 +8577,7 @@ private void importToolStripButton_Click(object sender, EventArgs e)
byte[,] layout = new byte[bmp.Width / LevelData.Level.ChunkWidth, bmp.Height / LevelData.Level.ChunkHeight];
if (!ImportImage(bmp, colbmp1, colbmp2, pribmp, layout))
return;
LayoutSection section = new LayoutSection(layout, LevelData.LayoutFormat.HasLoopFlag ? new bool[layout.GetLength(0), layout.GetLength(1)] : null, null);
LayoutSection section = new LayoutSection(layout, LevelData.LayoutFormat.HasLoopFlag ? new bool[layout.GetLength(0), layout.GetLength(1)] : null, new List<Entry>());
using (LayoutSectionNameDialog dlg = new LayoutSectionNameDialog() { Value = Path.GetFileNameWithoutExtension(opendlg.FileName) })
{
if (dlg.ShowDialog(this) == DialogResult.OK)
Expand Down

0 comments on commit eb4c420

Please sign in to comment.