Skip to content

Commit

Permalink
Fix crash on trying to get empty file identifier (#2480)
Browse files Browse the repository at this point in the history
  • Loading branch information
shazzner authored Jan 6, 2025
1 parent 27c8f96 commit ee559c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions addons/dialogic/Core/DialogicResourceUtil.gd
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ static func add_resource_to_directory(file_path:String, directory:Dictionary) ->
## Returns the unique identifier for the given resource path.
## Returns an empty string if no identifier was found.
static func get_unique_identifier(file_path:String) -> String:
if not file_path: return ""
var identifier: String = get_directory(file_path.get_extension()).find_key(file_path)
if typeof(identifier) == TYPE_STRING:
return identifier
Expand Down

0 comments on commit ee559c4

Please sign in to comment.