diff --git a/src/electron.renderer/data/Project.hx b/src/electron.renderer/data/Project.hx index 1f65a3b9e..c8327eb82 100644 --- a/src/electron.renderer/data/Project.hx +++ b/src/electron.renderer/data/Project.hx @@ -229,7 +229,7 @@ class Project { public function fixUniqueIdStr(baseId:String, ?styleOverride:ldtk.Json.IdentifierStyle, isUnique:String->Bool) : String { baseId = cleanupIdentifier(baseId, styleOverride==null ? identifierStyle : styleOverride); - if( baseId=="_" ) + if( baseId=="_" || baseId==null ) baseId = "Unnamed"; if( isUnique(baseId) )