Fixed crash when Select Texture or Select Flat is clicked in Grid Setup dialog and no texture was previously used

This commit is contained in:
codeimp 2009-05-17 15:02:03 +00:00
parent 04b883f999
commit 98f7420b33
2 changed files with 2 additions and 2 deletions

View file

@ -58,7 +58,7 @@ namespace CodeImp.DoomBuilder.Windows
Cursor.Current = Cursors.WaitCursor;
ListViewItem item;
bool foundselecttexture = false;
long longname = Lump.MakeLongName(selecttexture);
long longname = Lump.MakeLongName(selecttexture ?? "");
// Initialize
InitializeComponent();