diff --git a/scripts/autoload/jsonhelper.gd b/scripts/autoload/jsonhelper.gd index 3c00015..e2f4f8c 100644 --- a/scripts/autoload/jsonhelper.gd +++ b/scripts/autoload/jsonhelper.gd @@ -2,9 +2,9 @@ extends Node func key_value(json_path, json_file, key, is_dictionary = false): var file = File.new() - var news_outlets_path = str(json_path + json_file); - if file.file_exists(news_outlets_path): - file.open(news_outlets_path, File.READ) + var full_path = str(json_path + json_file); + if file.file_exists(full_path): + file.open(full_path, File.READ) var result = parse_json(file.get_as_text()) if is_dictionary == true: result.clear()