mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-27 06:02:11 +00:00
@ Fixed a bug that crashes when you save a map using Save As (introduced with r1277)
This commit is contained in:
parent
19909bac0c
commit
9ec7ba38fe
1 changed files with 1 additions and 1 deletions
|
@ -1167,7 +1167,7 @@ namespace CodeImp.DoomBuilder
|
|||
{
|
||||
// Check if we're saving to the same file as the original.
|
||||
// Because some muppets use Save As even when saving to the same file.
|
||||
string currentfilename = Path.GetFullPath(map.FilePathName).ToLowerInvariant();
|
||||
string currentfilename = (map.FilePathName.Length > 0) ? Path.GetFullPath(map.FilePathName).ToLowerInvariant() : "";
|
||||
string savefilename = Path.GetFullPath(savefile.FileName).ToLowerInvariant();
|
||||
if(currentfilename == savefilename)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue